Possible Duplicate:
C#: Prepending to beginning of a file
Adding a Line to the Middle of a File with .NET
I have a file.txt
with text inside and I need to know if is possible to write
other text in the begining of this file ?
I mean: There's a text and I want to write something else without loosing what I already have inside the file.txt
. BUT, I want to insert this new text in the begining of the file... Is it possible?
I'm using StreamWriter
to write inside the file. Just need to know if it's possible and the method to do so.