BlitzMax Docs -> 2D - A-Z -> R -> ReadFile
ReadFile:TStream( url:Object )
Returns:
Nothing.Description:
Open a file for input.This command is similar to the ReadStream command but will attemptto cache the contents of the file to ensure serial streams such ashttp: based url's are seekable. Use the CloseStream command whenfinished reading and or writing to a Stream returned by OpenFile.
Example:
' readfile.bmx
' the following prints the contents of this source file
file=readfile("readfile.bmx")
if not file runtimeerror "could not open file openfile.bmx"
while not eof(file)
print readline(file)
wend
closestream file
Comments
None.
BlitzMax Manual Forum
Blitz3D Equivalent Command




