Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A special FGet that can handle CRLF
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00707172
Message ID:
00707183
Vues:
36
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform