how can i read data from a text file.

  • Thread starter Thread starter Pramod Kumar
  • Start date Start date
P

Pramod Kumar

Dear All,

I want to read data from a text file using Stream Reader.
Please tell me the .DLL file to be added for the same.

Regards,

Pramod
 
Pramod Kumar said:
I want to read data from a text file using Stream Reader.
Please tell me the .DLL file to be added for the same.

'StreamReader' is part of "mscorlib.dll". Projects typically contain a
reference to this DLL, so you don't need to add one. What you may want to
do is importing the 'System.IO' namespace which contains 'StreamReader':

\\\
Imports System.IO
..
..
..
Dim sr As New StreamReader(...)
....
sr.Close()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top