SHOW:
|
|
- or go back to the newest paste.
1 | - | #! /usr/bin/env python |
1 | + | #!/usr/bin/env python |
2 | ||
3 | #Initialise variables and imports | |
4 | import os.path | |
5 | DataFile='emill.dat' | |
6 | ||
7 | fileObject = open("emill.dat",'r') #Opens data file | |
8 | - | fileContents = fileObject.read |
8 | + | fileContents = fileObject.read() |
9 | ||
10 | - | ./emill.py: 8: ./emill.py: Syntax error: "(" unexpected |
10 | + | print 'The contents of emill.dat follow' |
11 | print fileContents |