lcsv file line replace
<p>I am creating a csv file as follows:  </p>

<pre><code>public class check
{
public static void main(String [] args)
{
   generateCsvFile("/RMT/test.csv"); 
}

private static void generateCsvFile(String sFileName)
{
try
{
    FileWriter writer = new FileWriter(sFileName,false);

    writer.write("DisplayName");
    writer.write(',');
    writer.write("Age");
    writer.write('\n');

    writer.write("MKYONG");
    writer.write(',');
    writer.write("26");

    writer.write("YOUR NAME");
    writer.write(',');
    writer.write("29");

    writer.flush();
    writer.close();
}
catch(IOException e)
{
     e.printStackTrace();
} 
}
</code></pre>

<p>Here I am writing two lines in the file, but when I am writing the second line I want to replace the first line (the header) rather than append it. How can i do it? Can some help me?</p>
