If you are reading a .dat file or a .txt file and you have text in it like:
Look at the cat
and look at the [dog]
the [sky] is blue
Is there a way to identify the location of a character? For instance the d in dog would be LINE 2, ROW 18. Is there some function in C++ that can be used to do this with?