CompuServe Messages

#Reading a file

    03-Oct-89 23:40:05
Sb: #68153-#Reading a file
Fm: Mike Roth/Lattice 76566,1137
To: Michael A McCormick 76046,1057
Mike, If you really want the fastest way to read characters from a file, I'd recommend you go directly to the AmigaDOS functions (Open(), Read(), Close()). These functions are documented in the AmigaDOS reference manual. No matter what method you use, you will gain speed by reading in multiple characters. You shouldn't have any problems reading in 10,000 characters into a buffer with either Read() or read(). By the way, using the getc() type functions actually reads in more than one character at a time. The buffering is just transparent to the caller. I hope this helps. — Mike Roth