Reading and Writing Files in Python
Darren Jones
30:18
Description
In this course, you’ll learn about reading and writing files in Python. You’ll cover everything from what a file is made up of to which libraries can help you along that way. You’ll also take a look at some basic scenarios of file usage as well as some advanced techniques.
One of the most common tasks that you can do with Python is reading and writing files. Whether it’s writing to a simple text file, reading a complicated server log, or even analyzing raw byte data, all of these situations require reading or writing a file.
By the end of this course, you’ll know:
This tutorial is mainly for beginner to intermediate Pythonistas, but there are some tips in here that more advanced programmers may appreciate as well.
What You'll Learn?
- What makes up a file and why that’s important in Python
- The basics of reading and writing files in Python
- Some basic scenarios of reading and writing files
More details
User Reviews
Rating
Darren Jones
Instructor's CoursesDarren is an avid Pythonista and creates video tutorials for Real Python. Having followed a varied career as a nuclear industry instrumentation engineer, a musician, recording engineer and teacher, he’s always been interested in computers, spending the last 20 years producing music with them and teaching music technology. He’s written books on the subject, and spends the remainder of his time improving his Python skills, with a view to bringing them into the studio and classroom for better understanding of both music and programming.

Real Python
View courses Real Python- language english
- Training sessions 9
- duration 30:18
- Release Date 2023/01/05