A
andrewcw
Missing the obvious here..thanks..
I need to open the file exclusively for on entry like this:
FileStream stream = null;
stream = File.Open(fiPath, FileMode.Open,
FileAccess.ReadWrite,FileShare.None);
// then I open the file stream
System.IO.StreamReader Tin = new System.IO.StreamReader
(stream);
long lpos =stream.Position;
string existText = Tin.ReadToEnd();
// and push some changes back into the stream.
BUT what causes the File then to save the stream ??
I have reread my stream and the changes are there.
THANKS !
I need to open the file exclusively for on entry like this:
FileStream stream = null;
stream = File.Open(fiPath, FileMode.Open,
FileAccess.ReadWrite,FileShare.None);
// then I open the file stream
System.IO.StreamReader Tin = new System.IO.StreamReader
(stream);
long lpos =stream.Position;
string existText = Tin.ReadToEnd();
// and push some changes back into the stream.
BUT what causes the File then to save the stream ??
I have reread my stream and the changes are there.
THANKS !