System.IO.IOException: 'The process cannot access the file because it is being used by another process

后端 未结 1 839
南笙
南笙 2021-01-25 16:38

i\'m trying to save my txt file, but when i do i get the error in the title? if i use .CreateNew i dont get the error, but i want to save to the existing file i have?



        
相关标签:
1条回答
  • 2021-01-25 17:13

    You should dispose myStream variable. That's why you are getting that error.

    0 讨论(0)
提交回复
热议问题