| View previous topic :: View next topic |
| Author |
Message |
ryal Voice
Joined: 12 May 2005 Posts: 35
|
Posted: Wed Nov 09, 2005 11:18 am Post subject: Reading files |
|
|
Hi, me again
I have 2 questions regarding file reading:
1/ is there a way to read only the last line of a file. By that i mean an inbuild function. Cause i can read every line of it till i got the last, but it would be a nice time waste, wouldnt it
2/ is there a function that detects when a file has changed?
My goal is to announce when a file is modified (without having to use timers hopefully) and in that case read the last line. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Nov 10, 2005 12:00 am Post subject: |
|
|
you need seek _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
ryal Voice
Joined: 12 May 2005 Posts: 35
|
Posted: Thu Nov 10, 2005 11:21 am Post subject: |
|
|
Thanks a lot
seek (combined with tell) is working just as i wanted it to |
|
| Back to top |
|
 |
|