vb1992 Well-Known Member Licensed User Longtime User Dec 3, 2011 #1 If I copied the file, File.Copy(File.DirAssets,"test.txt", File.DirRootExternal,"text.txt") and wanted to open it up off the SD card Where would this be located? file:///android_asset/text.txt I am really interested in the "path" part of this, not opening this text file... if I wanted to replace this txt file with a mp3,pdf..etc
If I copied the file, File.Copy(File.DirAssets,"test.txt", File.DirRootExternal,"text.txt") and wanted to open it up off the SD card Where would this be located? file:///android_asset/text.txt I am really interested in the "path" part of this, not opening this text file... if I wanted to replace this txt file with a mp3,pdf..etc
NJDude Expert Licensed User Longtime User Dec 3, 2011 #2 The path is in File.DirRootExternal (or whatever location you enter such as File.DirDefaultExternal, etc) To see the path do this: B4X: Msgbox(File.DirRootExternal, "") Upvote 0
The path is in File.DirRootExternal (or whatever location you enter such as File.DirDefaultExternal, etc) To see the path do this: B4X: Msgbox(File.DirRootExternal, "")
R rtesluk Member Licensed User Longtime User Dec 4, 2011 #3 Example App Dec 4 2011 03:10 Hours Hi Download this small app to demo function 'File' paths. Ray Tesluk :icon_clap: Attachments DirFiles20111204.zip 6.6 KB · Views: 262 Upvote 0
Example App Dec 4 2011 03:10 Hours Hi Download this small app to demo function 'File' paths. Ray Tesluk :icon_clap:
NeoTechni Well-Known Member Licensed User Longtime User Dec 4, 2011 #4 NJDude said: The path is in File.DirRootExternal (or whatever location you enter such as File.DirDefaultExternal, etc) To see the path do this: B4X: Msgbox(File.DirRootExternal, "") Click to expand... That's not what he asked though Upvote 0
NJDude said: The path is in File.DirRootExternal (or whatever location you enter such as File.DirDefaultExternal, etc) To see the path do this: B4X: Msgbox(File.DirRootExternal, "") Click to expand... That's not what he asked though