Page 1 of 1 1
Topic Options
#118493 - 2004-04-22 10:36 AM Retrieve a line from a text file
Kixfan Offline
Fresh Scripter

Registered: 2004-03-18
Posts: 17
Hi all,

I am trying to retrieve a line of text from a text file. It is the disk space of a folder. Everytime, the number of files and size in the folder will increase.

I cannot use read line as everytime, if there is an increase in number of files, the result will be incorrect.

Is there a way where I can capture a line in the text file like:

Total files listed:
4,486 file(s) 123,234,234 bytes

I am interested in the line - 4,486 file(s) 123,234,234 bytes.

Top
#118494 - 2004-04-22 02:33 PM Re: Retrieve a line from a text file
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Is it the head or tail of the file? I believe there are UDF()s that cover these.

Otherwise you can use -
ReadLineEx() - Extended functionality for the ReadLine function

HTH,

Kent

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1636 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.063 seconds in which 0.043 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org