|
-
Apr 18th, 2007, 10:12 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Wait for a text file to stop being written to, then open the text file?
Hi All,
Is there a way vb.net 2005 can check to see when a file is done begin written to, then open that file and pull it's contents into a listbox?
I have a command line outputting data to a text file, then having my vb.net app pull the file from the text file to a listbox. Currently I have it working off of a delay, but this can be problematic due to underestimating the write time, then the .net app can not pull the data at all.
If there is a way for vb.net to wait, check, wait, check, if done, pull the data to a listbox? This would certainly be much better than a manual delay.
Any help would be much appreciated. Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|