in reply to Parsing a file line by line until a certain indice in array
I only want it to return the line with john in it.If you mean that you only want your program to print to STDOUT the line with 'john' in it, then you should not use print everywhere except in your 'got got' line.
If you mean something else, please clarify. It would help if you show us an example of the exact output you expect, inside 'code' tags.
See also: How do I compose an effective node title?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a file line by line until a certain indice in array
by sluggo (Novice) on Sep 05, 2009 at 18:47 UTC |