Quote:
I have tried doing it, but nothing seems to work.
I can only assume you did not do the right things.
Selecting the correct functions or classes to read the file is the first thing to do. So start by writing the code to do just that. Read each line from the file and display it on the console or window, depending on the type of program you are writing. Once you have that working then add the code to check each line for the keywords you want, and display just the lines with the correct keywords. Once you have that working, then add the code to split the lines and display just the content that you want from each line. Build your application piece by piece and you will find it much easier.