OutputStream fos = new FileOutputStream("lorem2.txt");
Writer osw = new OutputStreamWriter(fos);
BufferedWriter bw = new BufferedWriter(osw);
bw.write("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod");
bw.newLine();
bw.newLine();
bw.write("adgjakjdjkag");
bw.close();