Re: File positions and seek

2002-07-14 Thread John W. Krahn
Dave Chappell wrote: > > I am trying to use the seek function to force where my second while loop > starts within file tst.txt but I see the $. Gets reset to 0 before while > () starts. The $. is not related to the value that seek uses. To get the current position in the file that seek can use

Re: File positions and seek

2002-07-13 Thread Connie Chan
Sorry that I am not good in English , so dunno what do you want exactly =) But after in view of your code, it seem that you 've doing something wrong, maybe... I don't know.. So let's check it out =) > > ---Code Snip > > open (IN, "tst.txt) or die "Cannot open $file for read :$!"; > > m

File positions and seek

2002-07-13 Thread Dave Chappell
I am trying to use the seek function to force where my second while loop starts within file tst.txt but I see the $. Gets reset to 0 before while () starts. My ultimate goal for this script is when a web page loads on my site. The script executes, reads portions of tst.txt that have changed s