Skip to Main Content
Python for Secret Agents
book

Python for Secret Agents

by Steven F. Lott
August 2014
Beginner to intermediate content levelBeginner to intermediate
216 pages
5h 13m
English
Packt Publishing
Content preview from Python for Secret Agents

Working with files and folders

Our computer is full of files. One of the most important features of our operating system is the way it handles files and devices. Python gives us an outstanding level of access to various kinds of files.

However, we've got to draw a few lines. All files consist of bytes. This is a reductionist view that's not always helpful. Sometimes those bytes represent Unicode characters which makes reading the file is relatively easy. Sometimes those bytes represent more complex objects which makes reading the file may be quite difficult.

Pragmatically, files come in a wide variety of physical formats. Our various desktop applications (word processors, spread sheets, and so on) all have unique formats for the data. Some of those ...

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

Python for Secret Agents - Volume II - Second Edition

Python for Secret Agents - Volume II - Second Edition

Steven F. Lott

Publisher Resources

ISBN: 9781783980420Supplemental Content