readFile method
Read the contents of a file as a string
Implementation
Future<String> readFile(String path) async {
final file = File(path);
if (!file.existsSync()) {
throw FileSystemException('File not found', path);
}
return await file.readAsString();
}