CompuServe Messages

#stdio in Lattice C

    02-Jul-88 22:18:17
Fm: Bob Rakosky 75156,336
To: JEFFREY C. DEGE 76426,211
Jeff, Sounds like you're real close. There are basically two types of file io that you can do, using the standard input and output. (Actually, this is a simplification, but let's leave it at that for now). You can use the Lattice functions to access the input and output streams but using the Lattice level-2 file functions (getc, fgetc, gets, fgets, putc, puts, etc), which the Lattice library routines will process and pass to the AmigaDos FileHandles. Your other option is to use the AmigaDos FileHandles yourself, which you can obtain via the Input() and Output() AmigaDOS function calls, and then read from and write to them as appropriate, using the AmigaDOS file io functions Read() and Write() <— (notice the capitalization). These are basically two equivalent approaches, but using the Lattice libraries is more "standard" across machine environments, while using the AmigaDOS functions directly is more "Amiga". Hope this clarifies more than it confuses…Bob