[Gambas-user] Stream IO

Laszlo Parkanyi parka at ...15...
Wed Aug 21 15:55:07 CEST 2002


When trying a simple stream IO with the following code:

  DIM sFilnam AS String
  DIM sLine AS String
  DIM iUnit AS Integer
  iUnit = 1
  sFilnam = "CONFIG.lingx"
  OPEN sFilnam FOR READ AS #iUnit
  WHILE NOT Eof(iUnit)
   LINE INPUT #iUnit sLine
   PRINT sLine

I get an error message pointing to line "OPEN..." saying "Type mismatch: 
wanted Integer got File instead". What is wrong here?


More information about the User mailing list