So, is the Compilers and General Programming sub-forum an acceptable location for a general (non-AVR) programming question?
If not, then perhaps this could get moved to the Off Topic sub-forum.
Understand that I'm not much of a programmer...
I am working on a PC to AVR Micro project, and I am currently working on the Windows PC side of the user interface.
I am programming in MS Visual Basic 2010 Express.
I am working with a User Configuration / Setup .txt file, stored in a fixed directory on the C: drive.
(Trying to keep it simple at the moment.)
I noticed that if the setup file is already opened with Windows Notepad or with Windows Wordpad I can STILL open and close it from within my VB program.
I can also rename the file from within Windows, (Windows explorer, R click, rename...)
However, if the setup file is already opened in MS Word, then attempting to rename it pops up the File is already in use message, and if I attempt to open/close it within VB it throws an exception error.
I was attempting to easily determine if the setup file is already opened, or not, before the VB program continued to work with the file.
It would appear that the Windows OS and VB both recognize a file as being already opened via MS Word, but that NotePad and Wordpad can slip through the system?
Don't ask me how many hours I spent this evening intentionally trying to get VB to throw an exception / error while I had the setup file opened (in WordPad), and couldn't figure out why I wasn't getting the error I expected...
Good think I don't program for a living!