title: Delete point in the text document and create a new file
body: <p>I am trying to delete the points in my text document file, by replacing it with an empty string.</p>
  
  <p>It does not work although the same works for the question mark.</p>
  
  <p><strong>Sample:</strong></p>
  
  <pre><code>... ... ... ... ... ... ... ... ... ...
  Stephensonstraße 07:10 07:40 08:13
  ... ... ...
  Universitätsklinikum 04:36 05:06 05:39 06:25 06:57 07:27 07:57 08:27 08:57 11:57
  ... ... ... ... ...
  Grönauer Baum 05:43 06:29 07:02 07:32 08:02 08:32 09:02 12:02
  ... ... ... ... ...
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code>private static void replace_word() {
  
      File file = new File("D:\\hl_sv\\L09MF.txt");
      try (PrintWriter writer = new PrintWriter("D:\\hl_sv\\L09MF2.txt");
              Scanner scanner = new Scanner(file)) {
              while (scanner.hasNextLine()) {
                  String line = scanner.nextLine();
                  writer.println(line.replace('?', '-'));
                  writer.println(line.replace('.', ' '));
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>