Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the len of the string which is more than 254
Message
 
 
To
26/04/2002 10:33:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00649589
Message ID:
00649698
Views:
9
How are you getting the file content into the string?

If you are using fgets() use the optional parameter that sets the max length of a line. This will allow you to easily read lines up to 8k bytes.

If your lines happen to be longer than that you can use fread() in a loop until you hit the CRLF

>In my app i need to get the length of the line in a text file, to compare if the incoming data (text) file is of correct length, but the line of the file has 290 chars but len() returns only 254, i know its the limitation of foxpro, but is there any other way to determine the length of the text file.
>
>eg this is one record from the text file
>
803524101121 1 52000A999999999I III 6 81942FB51847810305184781034161 DELAWARE AVE. WAPPINGERS FALLS NY125902719DB 30 3088820000 219000109510000 2190002190 219000109521 2A8888B 5888 147384ADY
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform