in reply to Re: reading a file
in thread reading a file

I'd also strip out new lines after reading the file in since

11111111****2222222
2222222222****33
3333

will result in ("11111111", "2222222\n2222222222", "33\n3333")

assuming that you didn't want the line break in the data. Do you?