Filename function
Posted: June 25th, 2020, 1:10 pm
I use the filename () function to get and write in a text file the file names in a given path. For example, for hhd01, hhd02,...,hhd(n) files contained in the "HHData" folder, I get:
C:\MySurvey\HHdat\hhd01.csdb
C:\MySurvey\HHdat\hhd02.csdb
....
On Android devise I cet :
/storage/emulated/0/csentry/MySurvey/HHdata/hhd01.csdb
.....
I want to use this file for another program using the "FileRead" function, and as you noticate with me, it would be complicated to use the same function at a time on PC as well as on Android devise.
So, I would like to know how to get only the file name (hhd01, hhd02, ...) instead of having the path included as described above.
Yours advises please ???
C:\MySurvey\HHdat\hhd01.csdb
C:\MySurvey\HHdat\hhd02.csdb
....
On Android devise I cet :
/storage/emulated/0/csentry/MySurvey/HHdata/hhd01.csdb
.....
I want to use this file for another program using the "FileRead" function, and as you noticate with me, it would be complicated to use the same function at a time on PC as well as on Android devise.
So, I would like to know how to get only the file name (hhd01, hhd02, ...) instead of having the path included as described above.
Yours advises please ???