Overriding an existing file in C# -
Modified!
I want to create a file called test.txt.
If that file already exists, then I have to make a file called test1.txt and do this.
pass FileMode.Create to File.Open (string, FileMode) will create a new file every time you open the file.
Flamestream file = file. Open ("text.txt", filemod.creative);
Comments
Post a Comment