Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft C# .NET
Create file fails (StreamWriter )
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="SMJT, post: 14238101"] Change FileMode.CreateNew to FileMode.Create When you run your code it will execute once and create the file (Check the folder), the second time it throws an exception because the file already exists, which is correct. Changing to FileMode.Create will force it to createa new file every time it executes. [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft DotNet
Microsoft C# .NET
Create file fails (StreamWriter )
Top