Learn the Skills Netflix, Meta, and Capital One Actually Hire For
Learn Backend Development Part-Time, Online
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Learn how to write to and read files using Python in this comprehensive tutorial. Explore file permissions, writing text and HTML to files, ASCII text formatting, reading file contents into variables, understanding file modes, changing file paths and working directories, and creating HTML reports from CSV data. Gain practical skills through a hands-on example of generating an HTML report from CSV information. Master essential file handling techniques to enhance your Python programming capabilities.
Syllabus
Intro
Permissions
Write to File
Write HTML to File
ACII Formatting Text
Read File Into Variable Value
File Modes
Change File Path
Change Current Working Directory
Create an HTML Report from CSV Example
Final Thoughts
Taught by
Eli the Computer Guy