G
Guest
I was writing a program that was reading data from files (not making any
changes) and I used the File.OpenRead(filename) command. It threw an error
for one file because it said the file was being used by another process. But
I can open this file fine with Notepad and see the contents.
How can I open the file without trying to get a lock on it, since I just
want to read it? I would have imagine OpenRead would do that but it obviously
isn't.
changes) and I used the File.OpenRead(filename) command. It threw an error
for one file because it said the file was being used by another process. But
I can open this file fine with Notepad and see the contents.
How can I open the file without trying to get a lock on it, since I just
want to read it? I would have imagine OpenRead would do that but it obviously
isn't.