PrintWriter writer = new PrintWriter("testfile.txt", "UTF-8");
Following this link:
How do I create a file and write to it in Java?
it does not specify a path link in the first argument of PrinterWriter(), but only a file name. I followed it exactly, but it then shows a FileNotFoundException. I ran the app once, but the exception still shows up. I assumed after running the app, a file would be automatically created, but it doesn't seem to do that. I am using eclipse for android, so I'm not sure where the file should have been created. If there is any confusion don't hesitate to ask questions, thanks.