title: How do I write exceptions to a text file? (JAVA)
body: <p>I am supposed to Use Scanner to read int values from a file “input.txt”, Read until end of file is reached, Write all program output to a file “output.txt”, Write all exceptions to a file “error.txt”, and Output each number read.</p>
  
  <p>I understand exceptions for the most part, but I do not understand how to write all exceptions to a text file in Java...</p>