Input/output (I/O) is one of the most common operations performed by computer programs. Examples of I/O operations include
▪ creating and deleting files
▪ reading from and writing to a file or network socket
▪ serializing (or saving) objects to persistent storage and retrieving the saved objects
Support for I/O has been available since .NET Framework 1.0 in the form of the System.IO namespace and its subnamespaces. This chapter presents topics based on functionality and selects the most important members of System.IO namespace.
File and directory handling and manipulation are the first topic in this chapter. Here you learn how to create and delete files and directories as well as manipulate their attributes. Next, ...