c# - How to read file from a non default library location in WinRT? -


i have folderpicker user able choose folder like. want read files folder, cloud d:\foo\bar.

since sample code have been able find reads of default knownfolders have no clue how this. assume user have permissions read said folder.

i have started wonder if possible since have not found samples of it.

does 1 have clue? writing in c#.

folderpicker returns storagefolder instance property of knownfolders class. means can enumerate files in same way:

var picker = new folderpicker(); picker.filetypefilter.add("*"); var folder = await picker.picksinglefolderasync(); foreach (var file in await folder.getfilesasync()) {     var contents = await fileio.readtextasync(file); } 

the above code reads files in folder text else.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -