Can I save files somewhere other than File.DirApp?
I tried it like this:
File.WriteList ("D: \", "file_name.txt", TEMP)
But the program crashes with the error:
How can I save the list, for example to the root of disk d?
I tried it like this:
File.WriteList ("D: \", "file_name.txt", TEMP)
But the program crashes with the error:
B4X:
Saving changes...
main._writefile (java line: 822)
java.io.FileNotFoundException: D:\1_1_1_Full.txt (Отказано в доступе)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at anywheresoftware.b4a.objects.streams.File.OpenOutput(File.java:439)
at anywheresoftware.b4a.objects.streams.File.WriteList(File.java:247)
at b4j.liana.write.nov.onesigcrc.main._writefile(main.java:822)
at b4j.liana.write.nov.onesigcrc.main._timer1_tick(main.java:781)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.objects.Timer$TickTack$1.run(Timer.java:118)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:745)