I'm reading a file line by line and wanting to grab the things that I want. I look for a keyword in the line then read it character by character right now. In C/C++ I would just throw the string in a for loop and iterate through it saying
This is the code I have so far.
i = 0
with open("test.txt") as f:
for line in f:
if "test" in line:
for character in line:
if character == "\"":
//append all characters to a string until the 2nd quote is seen
Any ideas?