Follow the advice from @Anke and store the file in shared storage, i.e. set the file scope to Legacy and use the following path: /Download/RoosterConfig.txt
You can store the file there and also read it again, but precondition is, that you do not edit it using an external app
See also
If you like to edit it, then use SAF to get access again