This is a (hopefully) simple question:
I am setting up three file handles and opening two of them (the third is opened later). I get an error 55 (file is already open) on the second one.
Here is the code snippet:
fileWeb% = FREEFILE
htcp% = FREEFILE
fileStock% = FREEFILE
OPEN $filnam FOR INPUT AS fileWeb%
OPEN $file1 FOR OUTPUT AS fileStock% ' This gives err=55
If I change the second one to the following, it works fine:
OPEN $file1 FOR OUTPUT AS #8
This code is in PBMAIN and no files have been opened prior to this. What is going on?
Dale
------------------
I am setting up three file handles and opening two of them (the third is opened later). I get an error 55 (file is already open) on the second one.
Here is the code snippet:
fileWeb% = FREEFILE
htcp% = FREEFILE
fileStock% = FREEFILE
OPEN $filnam FOR INPUT AS fileWeb%
OPEN $file1 FOR OUTPUT AS fileStock% ' This gives err=55
If I change the second one to the following, it works fine:
OPEN $file1 FOR OUTPUT AS #8
This code is in PBMAIN and no files have been opened prior to this. What is going on?
Dale
------------------
Comment