Reading and Writing Files in Python: Overview
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:
- 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
This tutorial is mainly for beginner to intermediate Pythonistas, but there are some tips in here that more advanced programmers may appreciate as well.
00:00 Hello, and welcome to this series of videos where you’re going to learn about reading and writing files in Python.
00:08 You’re going to take a look at opening and closing files in Python, how to read from a file, how to write data to a file, appending data to a file that already has data, file locations and paths, what a file is, and then finally, you’re going to look at examining the contents of some file types.
Become a Member to join the conversation.