I am writing a ConfigManager class using Portable Class Libraries. PCL supports StreamReader
and StreamWriter
classes that I want to use, but the PCL version of those classes do not support passing in a string during construction. PCL also does not support the reader.Close()
and writer.Close()
. Lastly it doesn't support the FileStream
class.
So I am looking for an answer to any one of the following questions:
- How can I get the
StreamReader
andStreamWriter
classes working in a PCL? - How can I create a new
stream
using PCL? - What other alternitives do I have to load and save files in a PCL?