Skip to content
Skip to page content
soylai.com

File Handling — Part 1: Files, Paths and Text Files

Beta
Lesson

File Handling

Part 1 — files, paths, modes and text files.

In this lesson you will

  • Tell text, binary and CSV files apart, and absolute paths from relative ones
  • Open files in the right mode, and close them, or use a with block
  • Read and write text files and move the file pointer with seek and tell
  • Write programs that count, search and copy lines of a text file
Part 1 at a glance