Assuming the file is getting updated and NOT held open (which might cause problems when your program opens it), you could do just as you suggested: read the file in once OR just get its length (not quite sure how - FileLen() in VB6 though ). On subsequent calls, seek to that position and begin reading til end of file.
Thanks for the reply. I guess my next question would be is it possible to declare a file stream globally? If I create it in the FileSystemWatcher event I have to load the entire file in each time the event fires.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.