title: ReadLine - execute twice?
body: <p>I need to be able to read each line of the file for multiple arguments, hence the for loop. After the first one, it does not seem to be reading them anymore, seems to skip the try statement. Any ideas? I'm sure Its something silly I am missing but have been playing about with it and unfortunately time is not on my side. </p>
  
  <pre><code>for (int j = 0; j &lt; ags.length; j++){
  
   try{
  String nameFromFile = null;
  BufferedReader InputReader = new BufferedReader(new InputStreamReader(System.in));
  while ((nameFromFile = InputReader.readLine()) != null) {
  
      // Do stuff
  
  } catch (IOException e) {
       System.out.println(e.getMessage());
      }
  }
  </code></pre>