I am trying to create an application that searchs in a specific file for a string(Lets call it string1) when that string is found,it(the application)suppose to display another string(string2)which i have chosen to match string1.
I know how to search for string1 in a file but when i found it,i dont know how to display the string that match's string1(string2).
I hope that you people catch my idea,if not,tell me i'll try to reformulate.
So,any help will be very apreciated.
I know how to search for string1 in a file but when i found it,i dont know how to display the string that match's string1(string2).
I hope that you people catch my idea,if not,tell me i'll try to reformulate.
So,any help will be very apreciated.