Skip to Main Content
Programming in Python 3: A Complete Introduction to the Python Language, Second Edition
book

Programming in Python 3: A Complete Introduction to the Python Language, Second Edition

by Mark Summerfield
November 2009
Intermediate to advanced content levelIntermediate to advanced
648 pages
18h 41m
English
Addison-Wesley Professional
Content preview from Programming in Python 3: A Complete Introduction to the Python Language, Second Edition

7. File Handling

Most programs need to save and load information, such as data or state information, to and from files. Python provides many different ways of doing this. We already briefly discussed handling text files in Chapter 3 and pickles in the preceding chapter. In this chapter we will cover file handling in much more depth.

All the techniques presented in this chapter are platform-independent. This means that a file saved using one of the example programs on one operating system/processor architecture combination can be loaded by the same program on a machine with a different operating system/processor architecture ...

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

Programming in Python 3: A Complete Introduction to the Python Language

Programming in Python 3: A Complete Introduction to the Python Language

Mark Summerfield

Publisher Resources

ISBN: 9780321699909Purchase book