Chapter 10. Working with File Content

Chapter 9, “Files and Directories,” covers the basics of working with files and directories in Adobe AIR. This chapter extends that information and discusses reading from and writing to files. Both are important techniques to use in an application and neither is hard to accomplish, but you must keep two details in mind: whether the transactions will be synchronous or asynchronous and the format of the file to be read from or written to.

The topic of synchronicity was introduced in the first section of the previous chapter. When reading in and writing out small amounts of data, using synchronous transactions will work well, so I’ll start by showing you how to perform synchronous reads and writes. With more data, ...

Get Adobe AIR (Adobe Integrated Runtime) with Ajax: Visual QuickPro Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.