Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fread(), frwrite() etc...
Message
From
24/05/2001 15:03:28
 
 
To
24/05/2001 14:58:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00511130
Message ID:
00511134
Views:
19
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
Map
View

Click here to load this message in the networking platform