How do you limit the # of lines Read?
koutoo at hotmail.com
koutoo at hotmail.com
Tue Sep 18 16:59:47 EDT 2007
More information about the Python-list mailing list
Tue Sep 18 16:59:47 EDT 2007
- Previous message (by thread): Tutorial or Example (or Tutorial) of Using Canvas to Producea Plot
- Next message (by thread): How do you limit the # of lines Read?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I am working on a loop for my code and was wondering if there is a way to limit the number of lines read through? I'd hate to cut the test file in order to run the code in the testing phase. Can you add a value in the parenthesis of the readline() function? t = string.readline() # Limit this somehow? Kou
- Previous message (by thread): Tutorial or Example (or Tutorial) of Using Canvas to Producea Plot
- Next message (by thread): How do you limit the # of lines Read?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list