0
I have this code below to record information in the csv file, but whenever I record something, what I have already written is lost. How do I get him to add a line with the new information keeping what he already has?
String fName = "cadastros.csv";
FileOutputStream fos = new FileOutputStream(fName);
PrintWriter pw = new PrintWriter(fos);
pw.println(request.getParameter("nome") + ";" + request.getParameter("email"));
pw.close();
fos.close();