View Single Post
Old 04-25-2006, 01:47 PM   #5 (permalink)
coolman
Registered User
 
Join Date: Mar 2006
Posts: 25
coolman is on a distinguished road
Hi this is not working

the file is in a directory called Python, but this still dont work I am trying to read in the file

Code:
f = open('/Python/Stud.txt) 
lines = f.readlines()   #lines in the file
for line in lines:      #loop line is variable
     print line      #to test
Please I have been stuck for ages
coolman is offline   Reply With Quote