File STRING

Blitz3D Forums/Blitz3D Programming/File STRING

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

filein = ReadFile("mydata.dat") ; opens file THAT MUST EXIST
; Loop this until we reach the end of file 
a$=""
While Not Eof(filein) 
a$=a$+chr$(readbyte(filein))
CloseFile( filein ) ; close what you opened
;File is now in a$


is another way...