How to write contents of one file to another file?

后端 未结 8 1459
遇见更好的自我
遇见更好的自我 2020-12-09 10:46

I need to write contents of a file to another file using File.OpenRead and File.OpenWrite methods. I am unable to figure out how to do it.

How can i modify the follo

8条回答
  •  旧巷少年郎
    2020-12-09 11:26

    Use FileStream class, from System.IO.

    [ComVisibleAttribute(true)]
    public class FileStream : Stream
    

提交回复
热议问题