Is there any way in Free Pascal/Delphi to reset the standard Input file back to console window after it was assigned to a 'real file' temporarily?
AssignFile(Input, 'stdin.txt');
...
CloseFile(Input);
// ??
ReadLn(x); // I/O error