[Gambas-user] Filehandle and #

smiefert at ...784... smiefert at ...784...
Wed Nov 21 16:38:11 CET 2007


hello,

i dontunderstand the code below. Why i sometimes  use hFile and sometimes #hFile

and what d the line

LINE INPUT #hFile,sLig?!?

SUB PrintFile(filename AS STRING)
  DIM hfile AS File
  DIM sLig AS String

  OPEN Filename FOR READ AS #hFile

WHILE NOT EOF(hFile)
  LINE INPUT #hFile,sLig
 Print sLig

CLOSE #hFile

END



More information about the User mailing list