c# - PCLStorage FileSystem is only available in Android, not iOS -


i'm writing cross platform application in xamarin, android , ios, , need save text files local storage. i'm using pclstorage, whenever mouse on pclstorage code, says "myapplication.android: available, myapplication.ios not available". how can use pclstorage store files on both platforms? or there way can this? here's example of of code:

public async task createrealfileasync(string filename, string filebody)     {         // hold of file system         ifolder rootfolder = filesystem.current.localstorage;          // create folder, if 1 not exist         ifolder folder = await rootfolder.createfolderasync("dadappfiles", creationcollisionoption.openifexists);          // create file, overwriting existing file         ifile file = await folder.createfileasync(filename, creationcollisionoption.replaceexisting);          // populate file text         await file.writealltextasync(filebody);     } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -