Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending long lines
Message
From
21/01/2002 20:13:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00608131
Message ID:
00608156
Views:
18
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform