Gustavo07
(Gustavo)
October 30, 2024, 6:02pm
#1
Uploading: image.png…
Uploading: Captura de tela 2024-10-30 111444.png…
I am having difficulty saving a CSV list using the file function to save to the phone’s internal storage, it creates the folder with the file name but when accessed there is no file
Taifun
October 31, 2024, 1:27am
#2
Try to upload your screenshots again
Taifun
Gustavo07
(Gustavo)
November 4, 2024, 5:58pm
#4
global exportar is
/Documents/past1/
Taifun
November 4, 2024, 6:45pm
#5
Is that an if block? It helps to switch the language to English before taking a screenshot…
Use Do it to find out the result of the MakeDirectory method… is it true or false or something else?
Also your path in the SaveFile method does not really make sense
Taifun
Gustavo07
(Gustavo)
November 4, 2024, 7:08pm
#6
ok but what should the block be like and what is the directory to save it in the cell phone files?
Taifun
November 4, 2024, 9:52pm
#7
Set the file scope to Legacy and try the File.SaveFile block together with the following path
/Documents/myFile.csv
Taifun
Gustavo07
(Gustavo)
November 7, 2024, 1:13am
#8
created the folder but it is empty without the csv list file
Gustavo07
(Gustavo)
November 7, 2024, 1:13am
#9
If that’s the case, it won’t work
Gustavo07
(Gustavo)
November 11, 2024, 4:54pm
#11
the first way the app creates the folder but without the content. It creates the test but without the file
Gustavo07
(Gustavo)
November 11, 2024, 4:55pm
#12
that way? Why isn’t it working?
Taifun
November 11, 2024, 5:09pm
#13
you forgot to specify the correct path, for example
/Download/test.txt
You can’t store something in the root directory anymore
From an Android point of view there are an → Internal Storage and an → External Storage.
1. Internal Storage
The Internal Storage can only be accessed with a rooted device.
1.1 The app package is saved in
/data/data/<packageName>/
1.2. The Private directory is
/data/user/0/<packageName>/files/
This private directory can be used with the File component to save / read text (setting the path without a slash). It can only be accessed by your app and is automatically removed when the app is un…
Taifun
Gustavo07
(Gustavo)
November 11, 2024, 5:23pm
#14
I understand, but in which block would I have to put it?
Taifun
November 11, 2024, 6:16pm
#15
obviously here in the fileName socket
Taifun