I use the following code to read from a text file in Gambas 2:
Dim hFile As File
Dim line As String
Open "text" For Read As #hFile
While Not Eof(hFile)
Line Input #hfile, line
Print line
Wend
close #hFile
------------------------------------------------------------
In Gambas 3 can not be used and must be assigned to hfile:
Dim hFile As File
Dim line As String
hFile = Open "text" For Read
While Not Eof(hFile)
Line Input #hfile, line
Print linea
Wend
close #hFile
It is a new approach?
Regards.
Cristian AbarzĂșa.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user