My project uses comma-delimited files of numbers like this:
1,1000,1000,point1
2,1027.699,1038.570,point2
3,1070.797,3456.123,point3
.
.
.
etc
When I first created the application, I used a file called 'sample.txt' with those types of numbers. I put the file the Files folder and then inserted it into the porgam with the following code:
That works well.
Today I tried to include similar files with this code:
but the others don't work. They are not being found although they are also in the "Files" folder and appear in the IDE Files tab. That's the first problem.
Second issue: When a user 'imports' a new file (comma-delimited database) into the program by copying it from his computer to the internal directory on his device, shouldn't that file now be usable as though it had come from the 'assets' folder or would that only work with an 'apk' file? It is important that I be able to import comma-delimited files, and parse them for calculations. Thanks for any help.
Jim
1,1000,1000,point1
2,1027.699,1038.570,point2
3,1070.797,3456.123,point3
.
.
.
etc
When I first created the application, I used a file called 'sample.txt' with those types of numbers. I put the file the Files folder and then inserted it into the porgam with the following code:
B4X:
File.Copy(File.DirAssets ,"sample.txt",File.DirInternal ,"sample.txt")
Today I tried to include similar files with this code:
B4X:
File.Copy(File.DirAssets ,"sample.txt",File.DirInternal ,"sample.txt")
File.Copy(File.DirAssets ,"CommaDelimited.txt",File.DirInternal ,"CommaDelimited.txt")
File.Copy(File.DirAssets ,"jim05.txt",File.DirInternal ,"jim05.txt")
Second issue: When a user 'imports' a new file (comma-delimited database) into the program by copying it from his computer to the internal directory on his device, shouldn't that file now be usable as though it had come from the 'assets' folder or would that only work with an 'apk' file? It is important that I be able to import comma-delimited files, and parse them for calculations. Thanks for any help.
Jim