different names in linux and windows...
Posted on 2011-02-16
filelocation = (String)session.getAttribute("selectedfolder");
new_filelocation = filelocation + "\\" + "testing.txt";
PrintWriter out1 = new PrintWriter(new FileOutputStream(new_filelocation));
file location is giving me the path something like
so new_location is
this works well in windows i.e., a file with name testing.txt is created and i can see msg "hi"
but in linux
the file is created with file name temp\testing.txt
but i can see "hi" msg in that...
how to overcome this problem....