The Visual C++ Programming Tutorials: Visual C++ System::I/O Namespace - Working with Files and Directories
| |
This Chapter will introduce you to the System::IO namespace, which contains classes, structures, and enumerations that implement the Microsoft .NET I/O model. 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 contains all the classes which are used for binary and text I/O, as well as classes and types that provide basic file and directory support. Binary I/O in the .NET Framework uses the BinaryReader and BinaryWriter classes, which read and write .NET primitive types in binary format. As with the TextReader and TextWriter classes, the binary I/O classes use an underlying Stream object to provide a byte stream. BothBinaryReader and BinaryWriter have a BaseStream property that gives access to the underlying Stream. You will learn to create file, read its content and write to the file. Other things such as finding file and directory, how to use command line arguments in C++ .NET also included. The following are the topics for this Chapter.
| |
Best viewed using FireFox, Chrome etc. Worst viewed using IE of any version
Webmaster contact: [contact[@]visualcplusdotnet.com] Copyright 2019 © Visualcplusdotnet. All rights reserved. Excellent hosting services provided by MochaHost - The Online Central
| About | Disclaimer | Privacy | Site Index & Project Download | Native C | Contact | | |
Custom Search | |
|
|