Discussion:
Oval - Read and Write a file text
(too old to reply)
Izaias
2004-11-30 19:20:46 UTC
Permalink
Hi,

I'm working at first time with PSION OVAL and Workabout, and when I
try read a text file, i receive a code error message. A code is:

Dim SFILE As String
Dim FILEIN As Single

FILEIN = FreeFile
Open "M:\RHODIA.TXT" For Output As FILEIN
Line Input #FILEIN, SFILE$

MsgBox SFILE

When cursor pass by line 5, a receive a error message like: INVALID
FILE MODE.

Someone know how i fix that?

Att.

Izaias
Mike
2004-11-30 20:48:45 UTC
Permalink
Hi,

I would guess that the file should be opened for Input, as follows.

Open "M:\RHODIA.TXT" For INPUT As FILEIN
--
Regards,
Mike
Post by Izaias
Hi,
I'm working at first time with PSION OVAL and Workabout, and when I
Dim SFILE As String
Dim FILEIN As Single
FILEIN = FreeFile
Open "M:\RHODIA.TXT" For Output As FILEIN
Line Input #FILEIN, SFILE$
MsgBox SFILE
When cursor pass by line 5, a receive a error message like: INVALID
FILE MODE.
Someone know how i fix that?
Att.
Izaias
Continue reading on narkive:
Loading...