How can I read a file character by character if I don't know how the lines are ended. I need to find specific strings. Once I find them, I need the information following them. Then I will need to continue reading the file until I find the next piece of information I need.
My file looks like this:
ISA/00/ /00/ /01/200091189ASN /ZZ/PAJCANADA /060620/1411/U/00401/401000763/0/P/>
The files not always have the same number of lines or amount of information, but the information I am looking for will always follow specific strings for example, I need the information following the 6th "/" and then the information following the first "X", etc.