Use the File readAsString() method to read a file as a string.
import 'dart:io'; main() async { var contents = await new File('file.txt').readAsString(); print(contents); }
Copyright© 2013-2019
京ICP备2023019179号-2