O'Reilly logo

Microsoft® .NET Compact Framework (Core Reference) by Mark Sutton, Rory MacLoed, Robert Burbidge, Stephen Wheelwright, Andy Wigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Input and Output

The .NET Compact Framework provides powerful features for reading and writing all types of files, from simple text files using character encodings, to pure binary files that must be read as bytes. Features exist for moving the read/write pointer through a file and for copying, moving, and deleting entire files. A file can be an actual file on the local device, a remote file on a network, or an object that is not a file at all, but is simply a stream of bytes either in memory or arriving at a socket or other network connection. You can read and write streams synchronously, where the call you make blocks until the file operation completes. Or, in the case of NetworkStream objects, you can read and write streams asynchronously, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required