i`m writing simple metro style app in c#. Now i have problem accessing files after picking them with filepicker. I got file access error in TagLib.File.Create(fileo.Path).
var picker = new FileOpenPicker();
picker.FileTypeFilter.Add(".mp3");
var file = await picker.PickMultipleFilesAsync();
foreach (StorageFile fileo in file)
{
TagLib.File mp3 = TagLib.File.Create(fileo.Path);
string pikkus = mp3.Properties.Duration.ToString();
}
you can read the mp3 tags buy Get the MusicPropertes with the file.