I have attempted to use the methods on this thread by deadlydog: How to quickly save/load class instance to file
This works in a console application for writing a list of classes to a file. However when I try migrating it to a UWP project I always get "Access to the path ..... is denied"
According to this thread: broadFileSystemAccess UWP I am meant to add broadFileSystemAccess capabilities, which I have done.
However, it also says that I need to use StorageFile APIs, not just classic System.IO API.
I believe the current writing method I am using is utilizing the System.IO API but I do not know how to achieve the same goal using StorageFile APIs.
Could someone please point me in the correct direction?