title: c# equivalent of fscanf()
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/472202/looking-for-c-sharp-equivalent-of-scanf">Looking for C# equivalent of scanf</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to convert a line of code from c to c#  </p>
  
  <pre><code>fscanf(fp, "%d %d\n", &amp;x,&amp;y);
  </code></pre>
  
  <p>is there an equivalent function for fscanf() in c#? how do i convert this line of code? </p>
  
  <p>Update:
  fp is a file pointer to a text file which contains an input like this</p>
  
  <pre><code>0 0
  </code></pre>
  
  <p>I need to save the integer inputs to x and y, respectively.</p>