code_junkie

How does one use FileStream to append to a file without an exclusive lock?

Nov 11th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. FileStream fwriter = new FileStream("C:\test.txt", FileMode.Append,
  2. FileAccess.Write, FileShare.Read);
  3. FileStream freader = new FileStream("C:\test.txt", FileMode.Open,
  4. FileAccess.Read, FileShare.Read);
Add Comment
Please, Sign In to add comment