title: Weird characters result from reading/writing
body: <p>I wrote some simple Java code to read in strings from a text file, combine them, and write them back out. (See snippet below for a simplified version with no change in output)</p>
  
  <p>The problem is that particular characters (- and ...) are different in the input file and the output file.  The dashes and ellipsis show up as special, unreadable characters in the output file.  I did not intend to change them, and I think there is some particular encoding I should use to avoid this.</p>
  
  <p>I am running under Windows.  The weird characters show up in multiple editors (NotePad, WordPad, and Word) in place of the dashes and ellipsis.</p>
  
  <pre><code>BufferedReader inFile = new BufferedReader(new FileReader("in.txt"));
  PrintWriter out = new PrintWriter(new FileWriter("out.txt"));
  String line;
  while ((line=inFile.readLine()) != null)
  {
       out.println(line);
  }
  </code></pre>