Forum Moderators: coopster

Message Too Old, No Replies

read file

         

kumarsena

4:57 pm on Jan 14, 2004 (gmt 0)

10+ Year Member



just wondering,

how can i open a file and then limit the number of lines i want to read? say i have a txt file and i only want to rad lin one to get the title of the text within?

thanks
kumar

kumarsena

6:18 pm on Jan 14, 2004 (gmt 0)

10+ Year Member



if i use i know i can read line by line, but hoe can i specify the line to read, in my case line 1 in file?

bcolflesh

6:21 pm on Jan 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



but hoe can i specify the line to read

Read the whole thing line by line into an array, then specify the line you need in your script, playa.

kumarsena

6:25 pm on Jan 14, 2004 (gmt 0)

10+ Year Member



ofcourse....

thanks,,,