I am writing a VB app that opens a text file, manipulates the contents a little, and writes out to a new text file. I can make it work perfectly using manual controls, but what I would like to do is have it 'watch' a folder and have it do the conversion on any file that appears in the folder.
Is there an easy way to do this? I'm pretty sure that I can figure out a way to look in the folder every so often, but I can't think of a way to verify that the file has finished being written to the folder, so that my program doesn't try to work with it before it's complete.
Any ideas?
Thanks,
Allen
Is there an easy way to do this? I'm pretty sure that I can figure out a way to look in the folder every so often, but I can't think of a way to verify that the file has finished being written to the folder, so that my program doesn't try to work with it before it's complete.
Any ideas?
Thanks,
Allen