hi!
i m trying to write some user entered entries to a text file on server...
here is my code
String news=new String();
String path=application.getRealPath("news.txt");
news=request.getParameter("news");
PrintWriter pw = new PrintWriter(new FileOutputStream(path));
pw.println(news);
pw.close();
this just doesnt seem to work....can anyone help?News is a text are field on the page