ZJ>Take a look at this code:
ZJ>dim OneLine as string
ZJ>dim FileHandle1 as Integer
ZJ>FileHandle1 = FreeFile
ZJ>Open "FD.LOG" for input as FileHandle1
ZJ>While not(EOF(FileHandle1))
ZJ> Line Input FileHandle1, OneLine
ZJ> 'Line Input #1, OneLine
ZJ>Wend
ZJ>What's wrong with the code I'm attempting to use?
Little thing: you need to use the pound sign (#) in front of the
variable FileHandle1, to signal the compiler that you consider it a
file number.
Glad to be of help. BTW, if you are using PB3x for your DOS
programming, take a look at PBFILES (freebie) and MAXLIB (Shareware).
I wrote'em, and I'm sure you'll like 'em.
PBFILES is a replacement file I/O library in assembler that mimics
PB's file I/O commands, but adds a bit of extra flexibility and more
sensible error handling (including critical errors).
MAXLIB has a bunch of well-behaved, well-integrated routines for
accessing EMS/XMS. I call it "the painless way to add EMS/XMS
support to your PB programs." It's as easy as using arrays, or files.
You can FIDO freq them as PBFILES.ZIP and MAXPB12A.ZIP.
The node numbers where you can file request them are:
105/317 - 14.4 v32
105/314 - 14.4 HST Dual Standard (9600 v32)
105/330 - 14.4 v32
Or, they are in the PB Forum Library on CIS, as PBFILE.ZIP and
MAX12A.ZIP (to allow for the 6.3 limitations on CIS).
....and it's good to see you back in the fold....
* SLMR 2.1a * MAXLIB For PB v1.2 - Access arrays and files in EMS/XMS!
--- WILDMAIL!/WC v4.12
---------------
* Origin: Com-Dat BBS - Hillsboro, OR. HST DS (1:105/314.0)
|