DBDigital / nookapps

Automatically exported from code.google.com/p/nookapps Please note I am not a developer. I only created this to prevent the code from being lost with the shutdown of GoogleCode. If you wish to work on this, contact me and I will add you. :)
0 stars 0 forks source link

Add nook.removeData() #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I cannot find a way to remove a nooklet .txt file saved via
nook.writeData().  There should be a function to remove the txt file. 
nook.writeData(name, "") just empties the file.  Maybe writeData could
remove the file if there is no data to enter?

Original issue reported on code.google.com by yuttadha...@gmail.com on 16 Apr 2010 at 4:28

GoogleCodeExporter commented 8 years ago
Something like (NookletViewer.java, line 331):

-                fi.write(buf);
+                if (v == "") fi.delete();
+                else fi.write(buf);

Original comment by yuttadha...@gmail.com on 16 Apr 2010 at 4:51