Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

File access

$
0
0

**I have a csv file that I want to put somewhere and at run time read it into a stream (so that I can use CsvHelper with it). **

It seems like I have to use something like

var reader = DependencyService.Get<ILoad>( ).GetTextReader( "Data/myFile.xslx" );

Where iLoad is an interface i create in the pcl and the implementation is in iLoad_IOS.cs
However, when I try this it can't find my file because there is a long and arbitrary series of folders rather than the folder i put it in

Is there a way to put the file in a known place so that i can get to it?

Thanks

-jesse
Jess@falafel.com


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>