Skip to content
Discussion options

You must be logged in to vote

This is happening because File.OpenWrite does not truncate the file when it opens it. That extra > isn't being written, it's left over from the previous save. (See the remarks section of the documentation for details)

You need to use File.Create instead.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@DaZombieKiller
Comment options

Answer selected by zms9110750
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants