Re: File pointer to be positioned at the last occurance of a keywo



Hi Herfried,

Thanks for your reply.

Is there a work-around for this situation without having to read line-by-line?

Regards,
kd.

"kd" wrote:

> Hi,
>
> I don't think that, reading the text file, line by line and checking for the
> keyword is a good idea, because, the file is large and the keyword occurs
> several times in the file. I need to only process the data that occurs after
> the last occurance of the keyword in the file.
>
> Regards,
> kd
>
> "Herfried K. Wagner [MVP]" wrote:
>
> > "kd" <kd@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb:
> > > I have a .txt file, in which I have to look for the last occurance of a
> > > keyword, and process contents of the file from that point onwards.
> >
> > Reading a text file line-by-line or blockwise with a progress indicator
> > <URL:http://dotnet.mvps.org/dotnet/faqs/?id=readfile&lang=en>
> >
> > --
> > M S Herfried K. Wagner
> > M V P <URL:http://dotnet.mvps.org/>
> > V B <URL:http://classicvb.org/petition/>
> >
.



Relevant Pages