Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fread(), frwrite() etc...
Message
De
24/05/2001 15:03:28
 
 
À
24/05/2001 14:58:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00511130
Message ID:
00511134
Vues:
20
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
Fil
Voir

Click here to load this message in the networking platform