How to read a text file into a string variable

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I have a text file, it is some scripts of SQL.
I want to read it into a variable, and set the string variable tto a
command string of SqlCommand.

How can I read a text file into a string variable
 

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