I want to save a file in the desired path

Use ASD, i e. the solution provided by @TIMAI2
However if additionally you want to use those files in other spps or you want to be able to see them in a file manager app, then store the files in shared storage, for example /Download or /Documents

Taifun
PS: yes, the guide by @Anke is all you need