The File class contains only static members, you can't create instances of
it.
May be you mean FileStream, in this case the answer is yes, since
StreamReader has a constructor that takes Stream as a parameter, and
FileStream inherits from Stream.
Best regards,
Sherif
"Bagger Vance" <hi****@fuji.mount.> wrote in message
news:1108688778.d2ef14884abe160ab22023c1fe96223f@t eranews...
Can I open a StreamReader on type File ( instead of a string filename ) ?