Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Text
Message
De
02/11/2001 13:29:02
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/11/2001 13:21:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00576452
Message ID:
00576889
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform