Information générale
Catégorie:
Codage, syntaxe et commandes
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement