Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A special FGet that can handle CRLF
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00707172
Message ID:
00707183
Views:
35
Edgar,

lcLine = fread( fh, 80 )

The string will be exactly 80 characters long and will include and CR/LF characters.

Use FWRITE() to write it out to the other file.

>I recieve a file form the Mainframe containing 80 characters per record.
>Some of those characters are CarriageReturn and/or LineFeed EOL.
>
>I can't read the 80 length record with EOL inline.
>
>After some operation, the 80 character line will be added to another file and must contain the exact characters original. FPUT puts garbage...
>
>How would you solve this delima?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform