Abstract
Every operating system makes use of files as the primary storage mechanism, and as such, there are mechanisms that allow us open and read from these files. Python also provides methods for opening, reading, and writing from files, but there are significant differences regarding how Python 2 and Python 3 handles file processing.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Joannah Nanjekye
About this chapter
Cite this chapter
Nanjekye, J. (2017). Working with Files. In: Python 2 and 3 Compatibility. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2955-2_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2955-2_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2954-5
Online ISBN: 978-1-4842-2955-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)