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