storage_access 0.0.7 storage_access: ^0.0.7 copied to clipboard
correct saving/loading files as strings, used to abstract opening and closing files with correct path. All you need to do is provide same filename.
Allow correct write/read of files as strings, using:
import 'package:storage_access/storage_access.dart' as storage;
true if all okay
final fileWasSaved= await storage.write( data: "I am very important data", asFile: "how_to_prepare_horkers.xml" ); if (fileWasSaved == false) beHeroAndFixIt();
null on any error
final myTreasure= await storage.read( fromFile: "how_to_prepare_horkers.xml" ); if (myTreasure != null) cookHorkers();