I have below code
try
{
FileWriter fileWriter = new FileWriter(\"C:\\\\temp\\\\test.txt\");
fileWriter.write(\"Hi this is sasi This t
Please try this :
try
{
FileWriter fileWriter = new FileWriter("C:\\temp\\test.txt");
fileWriter.write("Hi this is sasi This test writing");
fileWriter.append("test");
fileWriter.flush(); // empty buffer in the file
fileWriter.close(); // close the file to allow opening by others applications
}
catch(IOException ioException)
{
ioException.printStackTrace();
}