I have a string that looks like "%i|%i". Some examples: "52|23" , "7|3" , "98|6".
I want to parse this kind of strings to two int variables. so "52|23" will become a variable. int a=52 and int b=23.
These strings are saved in a .txt-file. How can I parse them out and parse them like explained above?