IT 116: Introduction to Scripting
Class 18

Today's Topics


New Material

Homework 8

I have posted homework 8 here.

It is due this coming Sunday at 11:59 PM.



Types of Files

Identifying a File

Storing Data on a Hard Disk

Files and the Kernel

Working with a File in Python


Accessing the Data in Files

Opening a File

Specifying the Location of a File

Writing Data to a File

Reading Data From a File

New Material

Using Files in Python

Appending Data to an Existing File

Writing and Reading Numbers

Reading the Lines of a File

Using Loops to Process Files

Reading Files with a for Loop