getFileAsString method
Implementation
String getFileAsString() {
//IF FILE PATH IS EMPTY OR NULL THROW AN EXCEPTION
if (_filePath == null || _filePath == "") {
throw Exception("File path not set");
} else {
//READ THE FILE AS A STRING
return _file!.readAsStringSync();
}
}