BlitzMax Docs -> 2D - A-Z -> R -> ReadFile
ReadFile:TStream( url:Object )
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.
' 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
BlitzMax Manual Forum
Blitz3D Equivalent Command
|Frosty Beverage Fund|