Page 1 of 1 1
Topic Options
#122257 - 2004-07-07 01:15 PM Sorry i have a problem
bgbeppe Offline
Lurker

Registered: 2004-07-07
Posts: 2
I newbie from kixtart if possible read a textfile line by line from start to end.
Thanks a lot.

Top
#122258 - 2004-07-07 01:48 PM Re: Sorry i have a problem
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Yup

Something like this

Code:
 
Open (1,"%systemdrive%\Temp\listpc69.txt")
ReadLine(1)



Please see link for more detail on Readline ReadLine

This is in the starter guide as well.

Aaron

_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#122259 - 2004-07-07 02:45 PM Re: Sorry i have a problem
bgbeppe Offline
Lurker

Registered: 2004-07-07
Posts: 2
thanks a lot but i can't read for example
line 1, line 2 .... line n.
because the parameter for readline is headle, not line .
is it true?

Top
#122260 - 2004-07-07 02:50 PM Re: Sorry i have a problem
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Look up ReadLine() in the KiXtart manual.

The example supplied reads a text file from start to finish, and displays each line on the screen.

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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.064 seconds in which 0.037 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