utils/read_write library
Extensions
- DirectoryEmptyOrCreateExt on Directory
- Empty or create helper
- FileStreamToFileExt on File
- Stream to file helper
Functions
-
readLines(
File file, {Encoding encoding = utf8}) → Future< List< String> > - Read string content
-
readString(
File file, {Encoding encoding = utf8}) → Future< String> - Read string content
-
streamToFile(
Stream< List< stream, File file) → Future<int> >File> -
Write the content of
streamtofile. -
writeBytes(
File file, Uint8List bytes) → Future< File> - Write bytes content. Does not fail
-
writeLines(
File file, List< String> lines, {Encoding encoding = utf8, bool? useCrLf}) → Future<File> -
Write lines content. Does not fail
Uses CR/LF if
useCrLfis true or if null and on windows -
writeString(
File file, String content, {Encoding encoding = utf8}) → Future< File> - Write a string content. Does not fail