Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Text
Message
From
02/11/2001 13:13:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/11/2001 12:54:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00576452
Message ID:
00576875
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform