Contact: aviboots(AT)netvision.net.il
39,961 questions
51,903 answers
573 users
word = 'aaa' with open('d:\data.txt', mode='r') as file: for line in file: if word in line: print(line) ''' run: aaa bbb eee eee aaa ggg kkk aaa lll '''