Skip to Content
Windows Runtime via C#
book

Windows Runtime via C#

by Jeffrey Richter and Maarten van de Bospoort
November 2013
Intermediate to advanced content levelIntermediate to advanced
320 pages
10h 53m
English
Microsoft Press
Content preview from Windows Runtime via C#

Chapter 6. Stream input and output

In Chapter 5 I explained how your app could navigate various storage folders to manipulate files. However, I did not explain how to access the contents of the files. In this chapter, you’ll learn how to transfer data to and from files using stream input and output. However, streams are not just for files; you can use them as a general-access mechanism to transfer data. For example, you also use streams to transfer data over sockets. (See Chapter 7.) Streams are also used to manipulate in-memory data, as I’ll show later in this chapter’s “Compressing and decompressing data” and Encrypting and decrypting data sections.

Simple file I/O

Before diving into streams, I want to show some WinRT APIs that simplify reading ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Modernizing Your Windows Applications with the Windows App SDK and WinUI

Modernizing Your Windows Applications with the Windows App SDK and WinUI

Matteo Pagani, Marc Plogas
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse
Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt

Publisher Resources

ISBN: 9780735679269Purchase book