Newbie IO problems

Darren Ramey

Member
Joined
Jan 25, 2003
Messages
7
Decided I would get back in to programming a bit just to keep my brain from going numb from playing too many video games :). Haven
 
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.

At least in theory this should work :)

-ner
 
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.

Thanks
 
Was able to figure out what I needed to do. It was easy once I realized I could still use the old style file functions in VB.net. I
 
Back
Top