Files made by createWriter invisible? <solved>
in
Android Processing
•
10 months ago
Trying to use createWriter to make a text document on my phone's sd card that I can open and view on my pc. I tried using the examples processing gave (SaveFile1 and 2) as well as the simplified example I made below. Unfortunately when I then run a search on my phone I can't find the file "helloworld.txt", nor can I find the files made by SaveFile1 and 2.
Had a look in some other threads and tried changing line 4 to
output = createWriter("//sdcard//helloworld.txt"); but that didnt help either. Worth noting that I've also enabled the "WRITE_EXTERNAL_STORAGE" permission. Anyone know what I'm doing wrong?
- PrintWriter output;
- void setup()
- {
- output = createWriter("helloworld.txt"); // Create the file
- output.println("Hello World!"); // Write to the file
- output.close(); // Finish the file
- exit(); // Stop the program
- }
1