I'm currently trying to create an object that takes an int source and an int target. I'm supposed to get those to variables from reading a line of code from a file. For example:
int source, target;
string fileline="<edge id="0" source="0" target="1" />"
How do I get that 0 from source and that one from target into the variables I created to store them in?