File STRING

Blitz3D Forums/Blitz3D Programming/File STRING

Zach3D(Posted 2005) [#1]
Deleted


Rook Zimbabwe(Posted 2005) [#2]
Zach first you have to have a file already written in ASCII format (OK you really don't have to have it in that format but for this example you do...) and you have to know the name and path to that file.

Then you have to:
filein = ReadFile("mydata.dat") ; opens file THAT MUST EXIST
; Loop this until we reach the end of file 
While Not Eof(filein) 
Print ReadLine$(filein)
CloseFile( filein ) ; close what you opened
Simple... LOOK IN THE LANGUAGE REFERENCE!!! That is where 99% of that example came from!!!!!!!!!!!!!!!!!!!!!!!


RGR(Posted 2005) [#3]


is another way...