Hi to all,
I have to copy a file from a dir to other dir replacing the destination file:
This is my case:
- Source (/SdCard/file.db)
- Target (/SdCard/Android/Data/<folder_app>/Files/file.db
To do this can I use File.copy & File.Delete ?
I mean:
1) delete the file in the target dir
2) Copy the file from source dir to target dir
Is the right way or there is a command that execute the two operations in the same time ?
I have to copy a file from a dir to other dir replacing the destination file:
This is my case:
- Source (/SdCard/file.db)
- Target (/SdCard/Android/Data/<folder_app>/Files/file.db
To do this can I use File.copy & File.Delete ?
I mean:
1) delete the file in the target dir
2) Copy the file from source dir to target dir
Is the right way or there is a command that execute the two operations in the same time ?