c# - StreamReader and Portable Class Library -


i writing configmanager class using portable class libraries. pcl supports streamreader , streamwriter classes want use, pcl version of classes not support passing in string during construction. pcl not support reader.close() , writer.close(). lastly doesn't support filestream class.

so looking answer 1 of following questions:

  1. how can streamreader , streamwriter classes working in pcl?
  2. how can create new stream using pcl?
  3. what other alternitives have load , save files in pcl?

use dispose() instead of close() (or wrap in using statement). we've hidden/removed close() in windows store apps , newer pcls, because same thing , people confused 1 call.

consider using pcl storage cross platform file system access.

here blog posts may want refer how approach platform-specific functionality in pcls:


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -