wfile 0.2.0
wfile: ^0.2.0 copied to clipboard
A package for convenient work with files and their contents across multiple platforms.
WFile #
The package for convenient work with files and their contents across multiple platforms. Independent of the various system delimiters.
Examples #
const sourcePath = 'path/prefix';
final f = WFile(sourcePath);
// get a varios content from files with respect to [sourcePath]
content = f.readAsText('text.txt');
content = f.readAsBytes('bytes.bin');
content = f.readAsImage('images/happy.png'); // -> path/prefix/images/happy.png
content = f.readAsJsonMap('map.json'); // <- { ... }
content = f.readAsJsonList('list.json'); // <- [ ... ]
content = f.readAsXml('data.xml'); // <- <data attr="...">...</data>
// in same way we can use [writeAs*] methods
License #
MIT
TODO #
- All feautures for this package into README.
- Filesystem brokers.