简体   繁体   中英

Import external text file into Xamarin Forms application

I need to import a CSV file downloaded to a device into my Xamarin Forms application so that I can read the file contents, convert to Json and load into POCO objects and then send to SQLite database. My only question is how to select the file from the device file system for processing. I have looked at Gerald Versluis FilePicker Plugin for Xamarin and Windows. Is this my only choice for this process or is there something else available that I have not found?

Yes the the user needs to select the file from device storage, where ever that might be. The file picker plugin is what I decided to use as the plugin will let you select the file and read it into your app as a stream. Once you have the stream, you can pretty well do what ever you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM