Android Question Files created with File.WriteList command not visible in Explorer

RDCrozier

Member
Licensed User
Longtime User
My program creates a .csv file using the following command:

B4X:
     File.WriteList(File.DirRootExternal & "/Export",tcfile,List_Stock)

If i browse to this location on my device I can see the the csv export file. However when i plug the device into my PC and browse to it on file explorer the file is not there.

Furthermore, if i then make a copy of the file on my tablet, "creating export(0).csv" that file becomes visible on my PC, but not the original.

Is it likely to be a permissions issue, or the app not releasing the resources?

Thanks.
 

RDCrozier

Member
Licensed User
Longtime User
Thanks Erel!

That worked a treat.

As an aside, if the file already exists from a previous export, the data within the file is overwritten, but the file does not alter in size. So say the list was 50 items one time and then next time it was 60, the first 50 lines would be written to the file but the remaining 10 would not be, because the file does not expand in size?

I guess i could just check for the file, and delete it if it exists? whats the easiest way to do this?

Thanks.
 
Upvote 0
Top