Make an APP read file

My question is that, if it is possible to get a variable from a .properties or .txt file. I need that in order to save the endPoint , the server IP address. That way, every time that the IP address is changed, all you need to do is change the IP on the file, instead of compile the code again and build the apk, and install it again on the device. Any tips will be welcome.

import { File } from '@ionic-native/file/ngx';
async test(){
this.promise = this.file.readAsText('file:///data/','ipAddress.txt'); 
await this.promise.then(value => {
}).catch(error=> console.log("nao existe"))

Receiving the following error :

ERROR Error: Uncaught (in promise): FileError: {"code":1,"message":"NOT_FOUND_ERR"}

I do .checkDir and so, i know that the path is correct. Even though i can’t read the file.

Before we go too far down this path, who exactly is the “you” you envision in this scenario, and when, where, and how would they go about doing this changing?

Problem solved. It can be found with more detail on :