Error in Help/ReadFile()
Posted: Sat Nov 19, 2005 6:05 pm
Just spent some time on this, the sample is from ReadFile() in Help:
The test should be:
Code: Select all
If ReadFile(0,"Text.txt") ; if the file could be read, we continue...
While Eof(0) <> 0 ; loop as long the 'end of file' isn't reached
Debug ReadString() ; display line by line in the debug window
Wend
CloseFile(0) ; close the previously opened file
Else
MessageRequester("Information","Couldn't open the file!")
EndIf
Code: Select all
While Eof(0) = 0