Why you read it in completely in the first place when you want to operate on
lines? When you mystring.split('n') you double the amounth of memory used. For
small files this seems ok but for larger ones your programm could explode. It's
much better to use the splitLines iterator as Stefan_Salewski pointed out. This
way you only have to store the current line in memory.
- Read lines from file thats in a variable Neil_H
- Re: Read lines from file thats in a variable kidandcat
- Re: Read lines from file thats in a variable Neil_H
- Re: Read lines from file thats in a variable Stefan_Salewski
- Re: Read lines from file thats in a varia... Neil_H
- Re: Read lines from file thats in a ... cdunn2001
- Re: Read lines from file thats i... Neil_H
- Re: Read lines from file tha... enthus1ast
- Re: Read lines from file tha... Neil_H
