Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending long lines
Message
De
21/01/2002 20:13:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00608131
Message ID:
00608156
Vues:
17
>A customer has given me a text file delimited by pipe. One of the fields is a message field and can be very long.
>
>Is there an elegant way to append the whole field into a memo field?
>
>TIA,
>Steve McMahon
>ZDI

I don't know whether you consider low-level file-functions "elegant", but sometimes they are the only way to go.

Either use fopen(), fread() or fgets(), and fclose(), or use filetostr() to read the entire file into memory, and then use standard text-functions like substr(), at(), etc.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform