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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -