Python 101 – Working with Files (Video)

Application developers are always working with files. You create them whenever you write a new script or application. You write reports in Microsoft Word, you save emails or download books or music. Files are everywhere. Your web browser downloads lots of little files to make your browsing experience faster.

When you write programs, you have to interact with pre-existing files or write out files yourself. Python provides a nice, built-in function called open() that can help you with these tasks.

In this video, you will learn how to:

  • Open files
  • Read files
  • Write files
  • Append to files

Let’s get started!

If you prefer to read a tutorial rather than watch one, then you may want to check out the following article: