By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,463 Members | 774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,463 IT Pros & Developers. It's quick & easy.

read txtfile data to array or datatable?

P: n/a
Tim
Greetings,

I need to read the contents of a textfile to memory and
then write these contents to another location. I was
thinking of reading this data into a datareader, but I
don't see anything for that, sqlDataReader,
OleDBDatareader. Could someone tell me was kind of object
I should read the textfile data into?

Thanks,
Tim
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You probably want to read it into a DataTable instead of a datareader. Or
are you asking what class to use to read the file into memory?

Chris

"Tim" <an*******@discussions.microsoft.com> wrote in message
news:01****************************@phx.gbl...
Greetings,

I need to read the contents of a textfile to memory and
then write these contents to another location. I was
thinking of reading this data into a datareader, but I
don't see anything for that, sqlDataReader,
OleDBDatareader. Could someone tell me was kind of object
I should read the textfile data into?

Thanks,
Tim

Nov 21 '05 #2

P: n/a
Tim,

In addition to Chris,

What is the start location of the textfile because that is in my opinion
complete unclear in your message.

Cor

"Tim" <an*******@discussions.microsoft.com>
Greetings,

I need to read the contents of a textfile to memory and
then write these contents to another location. I was
thinking of reading this data into a datareader, but I
don't see anything for that, sqlDataReader,
OleDBDatareader. Could someone tell me was kind of object
I should read the textfile data into?

Thanks,
Tim

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.