Hi
I am trying to understand what the lock feature does in vb.net.
I am using a text file.
I have created an instance of the filestream using fs and I am using the
following line:
fs.lock(0, fs.length)
When I set this up using the function instead of name spaces, it locks me out
of bring it up in notepad (which is the desired result).
But when I use the fs.lock method, it doesn't seem to accomplish anything.
Can someone explain what the .net lock feature is suppose to do and maybe would
you have some sample code I could see to make sure I am using it correctly?
Thanx if anyone can help!!!!!
Joe
I am trying to understand what the lock feature does in vb.net.
I am using a text file.
I have created an instance of the filestream using fs and I am using the
following line:
fs.lock(0, fs.length)
When I set this up using the function instead of name spaces, it locks me out
of bring it up in notepad (which is the desired result).
But when I use the fs.lock method, it doesn't seem to accomplish anything.
Can someone explain what the .net lock feature is suppose to do and maybe would
you have some sample code I could see to make sure I am using it correctly?
Thanx if anyone can help!!!!!
Joe