>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)