Trying to preserve my string formatting. When I open my .txt file, everything just gets written to one line.
String page = t.toString(); //this is my formatting String
String fileName = t.getSymbol(); //just helps me name the file (not important)
File file = new File("C:/Users/user1234212/desktop/folder1" + fileName + ".txt"); //not important here
file.getParentFile().mkdirs(); // also not important
FileWriter fw = new FileWriter(file.getAbsoluteFile()); //why does this reformat page ?
BufferedWriter bw = new BufferedWriter(fw);
bw.write(page);
bw.close();
RESULT SHOULD BE: title: other info:
Name: joe john
title: person
Summary... Joe john is a person.
Question... no question
Answer...
^ This is the String "page"