Possible Duplicate:
Looking for C# equivalent of scanf
I am trying to convert a line of code from c to c#
fscanf(fp, "%d %d\n", &x,&y);
is there an equivalent function for fscanf() in c#? how do i convert this line of code?
Update: fp is a file pointer to a text file which contains an input like this
0 0
I need to save the integer inputs to x and y, respectively.