M
morc
Hey,
i have this code:
String file = application.getRealPath("/") + "registered.txt";
FileWriter outW = new FileWriter(file, true);
outW.write("*T --------------------- \n"
// +"User ID: "+user_id+"\n"
+"email: "+email+"\n"
);
outw.close();
and it works fine. The only thing is i want it to overwrite whatever is
previously written in registered.txt.
i do not recall how to do this an couldn't figure it out int he
documentation.
if you can help me ill thank you in advance.
-morc
i have this code:
String file = application.getRealPath("/") + "registered.txt";
FileWriter outW = new FileWriter(file, true);
outW.write("*T --------------------- \n"
// +"User ID: "+user_id+"\n"
+"email: "+email+"\n"
);
outw.close();
and it works fine. The only thing is i want it to overwrite whatever is
previously written in registered.txt.
i do not recall how to do this an couldn't figure it out int he
documentation.
if you can help me ill thank you in advance.
-morc