Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Text
Message
From
02/11/2001 13:29:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/11/2001 13:21:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00576452
Message ID:
00576889
Views:
18
>Thanks for the advise, I came up with this, do you see any problems with it?
>
>lcStr=filetostr('mytext.txt')
>lnCut= rat(chr(13),lcStr)
>lcClip=left(lcStr,(lnCut-1))
>lnPos = rat(chr(10),lcClip)
>lcFinalStr=substr(lcClip, lnPos-1)
>? lcFinalStr

I see a problem. Not all files have chr(13) or chr(10) or both as line delimiters. When you look at them with a regular editor all show to be n lines.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform