|
-
Feb 16th, 2007, 03:17 AM
#1
Thread Starter
Fanatic Member
Filestream Concurrently issue
hi,
It is posible to write to file concurrently using File method or Streamwrite?
If so, how?
Thanks,
Popskie
-
Feb 16th, 2007, 08:28 AM
#2
Re: Filestream Concurrently issue
Depending on how you open it in the first place a FileStream can be read-only, write-only or read/write. That means that you can read and write to the same file using a single stream. What you cannot do is open multiple streams on a single file if any of them have write access. You can open as many read-only FileStreams on the same file as you like but if you want to open a write-only or read/write stream on a file it MUST be the only stream open on that file. If you try to open a second stream on a file that already has an open writable stream or you try to open a writable stream on a file that already has any open stream an exception will be thrown.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|