How do I save file to phone?

im try this
/storage/emulated/0/qqq.txt

Saving files has become complicated in recent years and Android versions.

Here's a FAQ:

Read Some basics on Android storage system to understand, that you are not allowed to store files in arbitrary directories anymore... try shared storage like /Download

Taifun

My suggestion is ASD, you can read & save very easily, you have full access also from Windows and android filemanagers