I am looking to make a simple program that will find a character and then print the next 10 characters in the line. I have only been able to make it print out the whole line and the rest of line is useless. This is what i have for now.
f = open("Active Notship.txt", "r")
searchlines = f.readlines()
for i, line in enumerate(searchlines):
if "P-" in line: