maybe I'm doing something wrong but I'm not able to read input from the console (on Windows) opening #STDIN file, here is my snippet I used for the test:
CODE
Code: Select all
Local fid = OpenFile(Nil, #STDIN, #MODE_READ)
While True
ExitOnError(False)
Local c = ReadChr(fid)
Local le = GetLastError()
ExitOnError(True)
If le <> 0 Then DebugPrint("ERROR: ", le, GetErrorName(le))
If Not(IsNil(c))
DebugPrint("-> ", c)
EndIf
Wend
Code: Select all
ERROR: 1009 Could not read all characters from file!
Check if it is read protected!