I'm running into a snag utilizing the StreamReader class. On the StreamReader Class documentation page, it states that it supports Universal Windows Platforms (UWPs) under the Version Information header, "Universal Windows Platform - Available since 8".
Upon further inspection of its constructors, the StreamReader(Stream) constructors do support UWP apps, however the StreamReader(String) constructors do not support them.
I'm currently using the StreamReader(String) constructor with the complete file path to to be read,
using (StreamReader sr = new StreamReader(path))
{
...
}
I'm seeking to learn how to convert my code for a StreamReader(String) to a StreamReader(Stream).