[Gambas-user] Using Open in Gambas 3
craf
prog at ...2177...
Mon Sep 6 04:06:14 CEST 2010
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.
More information about the User
mailing list