I have this kind of textfile with 100000 rows:
xx xxxx xxx xxxxx xxxxx xxxx xxxxxx xxxxx x xxx xxx xxxxx xxx-xxxx
xx xxxx xxx xxxxx xxxxx xxxx xxxxxx xxxxx x xxx xxx xxxxx xxx-xxxx xx
xx xxxx xxx xxxxx xxxxx xxxx xxxxxx xxxxx x xxx xxx xxxxx xxx-xxxx xxx xxx xx
i have table in sql
date time receive sent message
xx xxxx xxx xxxxx xxxxx xxxx xxxxxx xxxxx x xxx xxx xxxxx xxx-xxxx
C#
I want to save first 4 data each rows into assigned columns the rest values into ONE column.
am stuck at save remaining data into one column
foreach (var item in data)
{
dt.Columns.Add(new DataColumn());
}
i++;
DataRow row = dt.NewRow();
row.ItemArray = data;
dt.Rows.Add(row);

Manas MohapatraRank #182 · 13.2K reputationPosted May 31, 2017, 9:03 PM EDT
shshva34 reputationPosted May 31, 2017, 10:23 PM EDT
Jay Stewart120 reputationPosted Jun 2, 2017, 3:05 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Jun 2, 2017, 3:42 AM EDT
shshva34 reputationPosted Jun 6, 2017, 7:35 PM EDT