Hi,
Writting the file that you are reading is fine ONLY IF you will no change
the size of it and you only write on the part that you read already,
otherwise you could overwrite the original content.
It's much better if you create a temp file, write to it and when done just
delete the original file and rename the temp file.
You can use Path.GetTempPath() to create the new file in
and Guid.NewValue() to name the file with an unique filename.
Something in the back of my head tells me that there is another way to
create a temp file but I dont remember right now.
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Fabian" <fa***********@N-O-S-P-A-M.itacs.de> wrote in message
news:Og**************@TK2MSFTNGP14.phx.gbl...
Hi
I want to change the content of text file.
I use an StreamReader to read but I canīt use a StreamWriter for the same
Stream.
What I must do to implement content changing?
Thanks for help
Fabian