online poker

Sean Lynch

Death to Videodrome. Long live the new flesh.

Subscribe to Sean Lynch
Feb-23-2010

Assignment2

Posted by admin under

We will be doing demos for assignment 2 on Feb 23. You will need to have Invictus.txt, HarrisonBergeron.txt, and HarrisonBergeron.vigenere for testing
A lot of people had problems getting the text in. Apparently the command doesn’t always work; this is my bad for not testing it, although you all should, in the future e-mail if you have any issues, and make sure to test on the school machines, so that these issues do not come up.

Anyways, in order to fix this, put all of the files to run (i.e. HarrisonBergeron, and Invictus) and then you use the following to read in a file:
fileName = raw_input(“Please enter a file name “)
file = open(fileName, “r”)
text = file.read()
text is the string that you use that contains all the contents of the file. You can call this whatever you want, or whatever your string is named.

No Tag
Tags:

Add A Comment