loadTextFile static method
Implementation
static Future<String?> loadTextFile(String url) async {
// String dir = (await getApplicationDocumentsDirectory()).path;
String dir = "";
return FileTools.downloadFile(url, "${dir}textfile.txt").then((f) {
return f!.readAsString();
});
}