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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -