title: BufferedReader and BufferedWritter
body: <p>I have a .txt file. I want as soon as a line starts from '>' then, the first bullet symbol '•' that is encountered to be written as '>>•'. I use:</p>
  
  <pre><code>br = new BufferedReader(new FileReader("C:\\Users\\User\\Desktop\\text.txt"));
  bw = new BufferedWriter(new FileWriter("C:\\Users\\User\\Desktop\\text.txt"));
  
          while ((current_line = br.readLine()) != null) {
              if (current_line.length() &gt; 1 &amp;&amp; (current_line.charAt(0) == '&gt;' || current_line.charAt(1) != '&gt;'))  {
                  found = true;
              }
              if ((found) &amp;&amp; (current_line.length() &gt; 1) &amp;&amp; current_line.charAt(0) == '•') {
                  bw.write("&gt;&gt;");
                  found = false;
              }
          }
          br.close();
          bw.close();
  </code></pre>
  
  <p>But that gives as a result an.. empty .txt file? What do I do wrong? Thanks a lot</p>