DataTable from TextFile?
Posted
by
Craig
on Stack Overflow
See other posts from Stack Overflow
or by Craig
Published on 2012-11-21T04:46:11Z
Indexed on
2012/11/21
5:00 UTC
Read the original article
Hit count: 132
I have taken over an application written by another developer, which reads data from a database, and exports it.
The developer used DataTables and DataAdaptors.
So,
_dataAdapter = new SqlDataAdapter("Select * From C....", myConnection);
and then
ExtractedData = new DataTable("CreditCards");
_dataAdapter.Fill(ExtractedData);
ExtractedData is then passed around to do different functions.
I have now been told that I need to, in addition to this, get the same format of data from some comma separated text files. The application does the same processing - it's just getting the data from two sources.
So, I am wondering if I can get the data read into a DataTable, as above, and then ADD more records from a CSV file.
Is this possible?
© Stack Overflow or respective owner