can somebody help me please?
My problem is;
i have a txt file
i ask the user for 2 words(word1,word2), if there is a line in my txt file with both words, i have to cout the line which has both words...
e.g;
line1 car wood steel computer
line2 birds animals bikes trees
line3 sky water beach sun
user inputs word ( birds and trees) both birds and trees are in same line
how can i cout the specific line which has both words ?






