This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I need to save a string as a file at server end . I am using JWS and when I save it using FileWriter it get saved at the JWS root directory. I need to save the file in a paticular directory at web server ie. like http://localhost:/pubic_html/abc . I am reading the file through this URL myURL = new URL("http://localhost:8080/template/template.htm"); BufferedReader in= new BufferedReader(new InputStreamReader(myURL.openStream())); and I am saving like this FileWriter f1=new FileWriter("reslt.htm"); f1.write(str,0,str.length()); f1.close(); It get saved at JWS root directory .When I tried giving the full server path with the file name in FileWriter it did not worked I need to save the file at particular directory ie. virtual directory at the server