November 2013
Intermediate to advanced
320 pages
10h 53m
English
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.
Before diving into streams, I want to show some WinRT APIs that simplify reading ...