Guest_imported
New member
- Jan 1, 1970
- 0
Hello everyone,
I've got a problem. I'ver tried to find the EOF but the programm didn't work!
Cann anyone help me?
The programm looks like this:
...
self.sourcefile = open(sourcefile, 'r')
...
lines = self.sourcefile.readlines()
...
for line in lines:
if not line: # but this matches not the EOF??!?!
print "---EOF---"
I've got a problem. I'ver tried to find the EOF but the programm didn't work!
Cann anyone help me?
The programm looks like this:
...
self.sourcefile = open(sourcefile, 'r')
...
lines = self.sourcefile.readlines()
...
for line in lines:
if not line: # but this matches not the EOF??!?!
print "---EOF---"