File management is an important part of the operating system, and file manipulation is a means of file management for users when they write applications.
There are currently many file systems. In the operating systems we've used from DOS, windows3.x, Windows95, WindowsNT, Windows2000, we've used file systems like fat, FAT32, and NTFS that we're very familiar with. These file systems are implemented in different ways within the operating system, but the interfaces they provide to the user are consistent. As long as the code is written in a formal way and the program does not relate to the specifics of the operating system, the resulting application can be ported on a different operating system without modification. Therefore, when writing code for file operations, we do not need to consider the specific implementation, only to use the language environment to provide us with the external interface.
A complete application, must involve the system and user's information to store, read, modify and other operations, but also often need to design their own file format. Therefore, the effective implementation of file operations, is a good application must have the content.
C # provides us with a powerful capability for file manipulation. Use. NET environment, we can easily write C # programs to achieve the storage management of files, read and write files and other operations.
17.1. The I/O method provided by the NET Framework structure
17.2 C # 's file storage management
17.3 C # Read and write file method
17.4 Asynchronous file operations in C #