title: File Input output in Mathematica
body: <p>I am writing test-cases for a problem,I want to check my test-cases with Mathematica but I am facing some problems with file input/output.</p>
  
  <p>I have to take Input from a file say "Test.in",the date consists of an Integer/String in each line and the input is terminated by EOF,I have to take the input (every line,one at a time) and in each step I have to process the input and output to a file say "output.out".How can we do this in Mathematica?</p>
  
  <p>PS:I am using Mathematica 7.0</p>
  
  <p>ADDED:</p>
  
  <p>A sample of Test.in would be like <a href="http://ideone.com/fM0rs" rel="nofollow">this</a>.</p>