Results 1 to 2 of 2

Thread: Weird:StreamReader*RESOLVED*

  1. #1

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Weird:StreamReader*RESOLVED*

    Ok maybe I am missing soemthing

    but:

    I open a file to a stream class

    Dim blah As Stream = File.open(blah,blah)

    then create a streamreader using the above stream
    Dim blahstream As New StreamReader(blah)

    now when i .Close() the STREAMREADER, the STREAM is closed as well?!?!? Certainly it shouldn't do that should it?
    Last edited by Cander; Jan 14th, 2003 at 04:20 PM.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  2. #2

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Never mind! Stupid question really. Long day. Tired eyes. Empty stomach!

    I was making some stupid assumptions like .Close would close the class. Im stupid!

    time to go home.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width