Where do I put my files I want included in the program?

aedwall

Active Member
Licensed User
Longtime User
I am writing this code:

If File.Exists(File.DirRootExternal, filename) = False Then Return ""

It never finds my file named "filename". I have my files saved in the Files folder under my project. Where should I keep my files in the project so they can be found by the code? Thank you.


I think the solution is:

Add the file to the Files tab.
 
Last edited:

latcc

Banned
I am writing this code:

If File.Exists(File.DirRootExternal, filename) = False Then Return ""

It never finds my file named "filename". I have my files saved in the Files folder under my project. Where should I keep my files in the project so they can be found by the code? Thank you.


I think the solution is:

Add the file to the Files tab.

The code you are using refers to your external sd card location, not the program's internal area.
 
Upvote 0

mujeeb74

Member
Licensed User
Longtime User
Where is (File.DirAssets) folder to include pictures with my apk file like:
LoadBitmap(File.DirAssets,"gray.png")
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
It's under <project>/Files

Anything you put in there will be picked up by File.DirAssets
 
Upvote 0
Top