Sample below for multi acces read and write
i have several multi threaded services and also reader of activity in this
log....
hope this helps
analizer1
if (!File.Exists(LogName.FullName))
{
sw = new FileStream(this.LogName.FullName, FileMode.Create,
FileAccess.ReadWrite, FileShare.ReadWrite);
}
else
{
sw = new FileStream(this.LogName.FullName, FileMode.Open,
FileAccess.ReadWrite, FileShare.ReadWrite);
}
"Bob" <bs********@yahoo.comwrote in message
news:11**********************@k79g2000hse.googlegr oups.com...
Hi,
Is there any setting that I can use to allow the same file to be open
in a filestream in append mode with one process and read in another.
I can see why concurrent appends or write modes wouldn't work but it
seems like maybe a read could coexist with append?
Thanks,
Bob