import 'dart:io';
main() async {
final filename = 'non_existent_file.txt';
try {
var file = await new File(filename).readAsString();
print(file);
} catch (e) {
print('There was a ${e.runtimeType} error');
print('Could not read $filename');
}
}
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8