I have the following code to print a string(from a ResultSet) to a text file:
PrintWriter writer = new PrintWriter(new FileOutputStream(file, false)); while(
Use, in the statement. For example:
writer.print("1"+""); writer.print("2"+"");