General information
Category:
Coding, syntax & commands
FREAD(FileHandle,1) will read one byte into and move the byte pointer in the file on byte so the next call will read the next byte. Performance has bettered by using FILETOSTR() to get the whole file into a variable, processing it byte by byte as you require, creating an output file as a memory variable and, when finished, saving it using STRTOFILE().
Good Luck.
>how do i read one character at a time with fread()? i need to read through an entire file, character for character. if the character meets certain criteria, i need to write it to a new file. tips on linefeed characters, end of record markers etc will also be appreciated...
>tia
>john
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only