Here’s the code from the dcat program that writes the line number to the stdout (if the -n flag is set) followed by the line from the file. if (showLineNumbers) { stdout . write(‘${lineNumber++} ‘); } stdout. writeln(line);
Read moreHow do I open a Flutter file?
Flutter – Pick and Open Files From Storage
Read moreHow do you read a dart file?
To read File as a String in Dart, you can use File. readAsString() method or File. readAsStringSync(). File .
Read more