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
- [C#] How to use File.Open Method
- [C#] How to use File.OpenRead Method
- [C#] How to use File.OpenText Method
- [C#] How to use File.OpenWrite Method
- [C#] How to Append a File in C#
- [C#] How to Copy a File in C#
- [C#] How to Move a File in C#