Chapter 14 Files and Streams

In this chapter, we’ll look at the classes that wxWidgets provides for low-level file access and streaming. wxWidgets’ stream classes not only protect your application from the idiosyncrasies of different standard C++ libraries but also provide a complete set of classes including compression, writing to zip archives, and even socket streaming. We’ll also describe wxWidgets’ virtual file system facility, which lets your application easily take data from sources other than normal disk files.

File Classes and Functions

wxWidgets provides a range of functionality for platform-independent file handling. We’ll introduce the major classes before summarizing the file functions.

wxFile and wxFFile

wxFile may ...

Get Cross-Platform GUI Programming with wxWidgets now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.