Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reading Text
Message
De
02/11/2001 13:13:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/11/2001 12:54:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00576452
Message ID:
00576875
Vues:
19
>How would I read the last line of the text file if the last line has a carriage return after it? Thanks!

As far as I understand it's not huge and could use FileToStr().
lcStr = FileToStr(getfile('TXT'))
lnLine = memlines(lcStr)
do while empty(mline(lcStr,lnLine)) and lnLine > 1
 lnLine = lnLine-1
enddo
? mline(lcStr,lnLine)
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform