Congratulations! Now you know how to read and write plain text files using the Path.open()
method and built-in open()
function, as well as how to work with comma-separated value, or CSV, files using the Python standard library’s csv
module.
In this video course, you’ve learned how to:
- Understand the difference between text and binary files
- Learn about character encodings and line endings
- Work with file objects in Python
- Read and write character data in various file modes
- Use
open()
,Path.open()
, and thewith
statement - Take advantage of the
csv
module to manipulate CSV data
To continue your learning journey, check out these video courses:
- Reading and Writing Files in Python
- Practical Recipes for Working With Files in Python
- Reading and Writing CSV Files
- Reading and Writing Files With pandas
- Context Managers and Python’s
with
Statement - Using Python’s
pathlib
Module
You might also enjoy these written tutorials:
- Reading and Writing Files in Python (Guide)
- Working With Files in Python
- Reading and Writing CSV Files in Python
- Python Practice Problems: Parsing CSV Files
- Why Is It Important to Close Files in Python?
- Python’s
pathlib
Module: Taming the File System
Finally, you can revisit other topics in the Python Basics learning path.
Congratulations, you made it to the end of the course! What’s your #1 takeaway or favorite thing you learned? How are you going to put your newfound skills to use? Leave a comment in the discussion section and let us know.