> >> for line in f.xreadlines(): > >> print line > > How do you tell what line it is on there? You cant, not unless you create and increent your own counter: lineCount = 0 for line in f.xreadlines(): print lineCount, line lineCount += 1 Alan G