Thanks for responding........basically I am trying to figure out how to use the
namespace lock feature of dot.net.
I want to lock a text file while modifying it during the run of a program and
then unlock it after I finish modifying it. I don't even want someone to be
able to read it in a text editor during that time. I hope this clarifies what
I am trying to do.
Thanks again!
Joe>Subject: Re: Locking Files
[quoted text, click to view] >From: Tom Shelton tom@YOUKNOWTHEDRILLmtogden.com
>Date: 9/14/2004 12:26 AM Central Standard Time
>Message-id: <1c4ep8i0xw6bj$.g9ts63es24u4.dlg@40tude.net>
>
>On 13 Sep 2004 20:02:34 GMT, Joecx wrote:
>
>> 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
>
>Joe,
>
>I'm a little unclear here - and maybe are others... Can you give some
>example code and be a little more concise as to what your issue/question
>is?
>
>Thanks
>--
>Tom Shelton [MVP]
>
>