Stream

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pai

    #1

    Stream

    Hello there,

    I have document a file in the C:\\ named test.doc.

    I would like to read the contents of the file by assigning it to Stream class....

    Stream fstream = ????

    how do i achieve this....

    any suggestions or help....

    Kind Regards,
    Srikanth Pai
  • David Sworder

    #2
    Re: Stream

    How about:

    using(StreamRea der sr=new StreamReader(@" c:\test.doc")){
    //read via sr.ReadLine()
    }


    "Pai" <spai@immunetol erance.org> wrote in message
    news:5332f465.0 308291256.73ec5 9c8@posting.goo gle.com...[color=blue]
    > Hello there,
    >
    > I have document a file in the C:\\ named test.doc.
    >
    > I would like to read the contents of the file by assigning it to Stream[/color]
    class....[color=blue]
    >
    > Stream fstream = ????
    >
    > how do i achieve this....
    >
    > any suggestions or help....
    >
    > Kind Regards,
    > Srikanth Pai[/color]


    Comment

    Working...