wfile 0.5.4
wfile: ^0.5.4 copied to clipboard
Convenient work with JSON, image, text, binary files across multiple platforms. Can detect MIME types.
// ignore_for_file: avoid_print
import 'package:wfile/wfile.dart';
void main() {
final f = WFile('example/data');
// read a content
print(f.readAsText('happy.txt'));
// identify a type
print(f.binary('image.webp'));
// identify the MIME type
print(f.mime('image.webp'));
}
copied to clipboard