At some point, programs will need to work with persistent data. This section explores writing and reading data to and from the hard drive. Lua provides facilities to read and write files through its io library. A file doesn't have to contain textual data; you can store data as a binary representation. Reading and writing binary data with Lua is also possible.