View Single Post
Old 04-04-2006, 06:00 AM   #3 (permalink)
coolman
Registered User
 
Join Date: Mar 2006
Posts: 25
coolman is on a distinguished road
i dont understant the file name bit

i have the file in a directory called my documents and another directory called computer science and the file is there

Code:
f = open("mydocuments/computerscience/student.txt")
   lines = f.readlines()
   for line in lines:
       # do something with line
       line_head = line[start:6]
       line_tail = line[6:-1]
but this dont work any ideas
coolman is offline   Reply With Quote