utils/read_write library

Extensions

DirectoryEmptyOrCreateExt on Directory
Empty or create 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
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 useCrLf is true or if null and on windows
writeString(File file, String content, {Encoding encoding = utf8}) Future<File>
Write a string content. Does not fail