Create a week08 subdirectory in your cs21/class directory and copy over my starting point files:
$ cd
$ cd cs21/class
$ pwd
/home/your_user_name/cs21/class
$ mkdir week08
$ cd week08
$ pwd
/home/your_user_name/cs21/class/week08
$ cp ~turnbull/public/cs21/week08/* .
$ ls
fileTest.py foo.txt listAlgs.py
open filetest.py in vim. We will look at this code together and try running it to see if we understand what it is doing.
Rules for using a file:
infile = open("foo.txt", "r")
line = infile.readline()
infile.close()
After taking a look at what list_algs.py does, we are going to add some code to list_algs.py.