BufferedReader replacing in loop
<p>I'm trying to make this work, I don't understand why it doesn't work since it makes sense to me, but it doesn't make sense to java it seems.</p>

<p>As you read the code, what I expect is _NAME to be replaced by TEST while maintaining the same structure of the text (keeping \n) to save it later(not done yet)</p>

<p>I also stored it using ArrayList, but the replace never took off either, so I'm clueless</p>

<pre><code>    try {
       BufferedReader reader = new BufferedReader (new InputStreamReader (
       new FileInputStream (temp), "utf-8"));
       String line = reader.readLine();
       StringBuffer text = new StringBuffer();

    while(line != null) {
        line.replace("[_NAME]", "TEST");
        Logger.info(line);
        line = reader.readLine();

        }
    reader.close();


    } catch(FileNotFoundException ex) {

    } catch(UnsupportedEncodingException ex) {

    } catch(IOException ex ) {}
</code></pre>
