I am using
Dart VM version: 1.24.3 (Wed Dec 13 23:26:59 2017) on "macos_x64"
WITH
Flutter 0.2.8 • channel beta
Framework • revision b397406561 (13 days ago)
Engine • revision c903c217a1
Tools • Dart 2.0.0-dev.43.0.flutter-52afcba357
ReadAsStringSync
is giving me an empty string as an output rather than the required file content, my code is
var appl = new File('a.txt').readAsStringSync();
print(appl);
also i need help with the readAsString method as it returns a Future<String>
, i want to know that is there any method or way to convert it into String