Remember, you have to use SAF to read/write non media files your app does not own, see also Some basics on Android storage system
Also you might want to think about how you plan to solve the problem of 2 processes (Tasker and your app) writing at the same time
Taifun