Chapter 16. Working with Files

After completing this chapter, you will be able to:

  • Understand how the Microsoft Windows .NET Framework performs input/output (I/O).

  • Identify the classes that make up the System::IO namespace.

  • Perform text I/O.

  • Read and write files.

  • Work with files and directories.

  • Perform binary I/O.

You’ve already used the Console class to perform I/O to and from the console. This chapter introduces you to the System::IO namespace, which contains the classes, structures, and enumerations that implement the Microsoft .NET I/O model.

Note

If you know anything about the Java I/O mechanism as implemented in the java.io package, you’ll find it easy to start working with .NET I/O because the two have many similarities.

The System::IO namespace ...

Get Microsoft Visual C++/CLI Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.