Thread: Reading a file
View Single Post
Old 05-03-2006, 12:26 PM   #13 (permalink)
coolman
Registered User
 
Join Date: Mar 2006
Posts: 25
coolman is on a distinguished road
sorry it still cant get it to work

I am sure its just the indentation



Code:
import re
 returnline = []
f = open("StudentList.txt", "r")
 for line in f.readline():
	returnline.append(re.compile(' ').sub(',', line[0:-1]))
  for item in returnline: #its dis bit that is pain when i put it there it says
IndentationError: unindent does not match any outer indentation level (<pyshell#92>, line 3)
I dont know wat i am doing wrong

Last edited by coolman; 05-03-2006 at 12:27 PM. Reason: spelling
coolman is offline   Reply With Quote