> Yes I know the method readlines but the file is enorm large In that case use xreadlines(), it will only read the lines as you ask for them not all at once. HTH, Alan G.