Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import Data Problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00825859
Message ID:
00825864
Views:
12
>I have a textfile with 31,000 lines.
>
>A few hundred of the lines are very long, some as much as 500
>characters.
>
>I'd like to import each line of this file into memo fields.
>
>When I use a low-level file, any string over 254 characters in
>length is truncated.
>
>Any ideas?

You need to specify a larger line length in order to read that file. The FGETS() function defaults to 254 characters unless you specify a larger number and the maximum is 8192.

cLine = FGETS(nHandle,8192)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform