[C#] How to Read and Write a File

A File must be opened using an IO resource before it can be read or write to. A file can be opened to read and/or write purpose. The FileInfo class provides four methods to open a file.

+ Open
+ OpenRead
+ OpenText
+ OpenWrite

Xem thêm  [C#] How to Get all drives in C#

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *