I'm trying to save the text from an EditText, I got it working, but I don't think I'm doing it correctly. When I reopen it in my app it's fine, but when I pull it from the device and I open it in windows notepad I lose the line-breaks.
...
try {
BufferedWriter buf = new BufferedWriter(new FileWriter(file, true));
buf.append(cv.getText().toString());
buf.close();
} catch(IOException e) {
e.printStackTrace();
}
What's the correct way to save large EditText's full of text?