Hello,
I am new to asp.net c# were i need to develop a website which accept the text file by file upload ,were the text file will be looking like this
eg:
one,two,three,four,five,six,seven,eight,nine,ten
one,two,three,four,five,six,seven,eight,nine,ten
one,two,three,four,five,six,seven,eight,nine,ten
one,two,three,four,five,six,seven,eight,nine,ten
one,two,three,four,five,six,seven,eight,nine,ten
which has 5 rows and 10 column which is separate by comma delimiter and i need to read the string into the mysql database but before that i need to read those value into string array and .
now the problem is i need only certain values for example
eg:
one,four,seven,ten
one,four,seven,ten
one,four,seven,ten
one,four,seven,ten
one,four,seven,ten
in here i only need one four seven and ten column value or string from every row.
I need coding to do this process.
thank you in advance.
Loading
Kunal VaishyaPosted Sep 16, 2013, 12:16 AM
krishnakumar kunaPosted Sep 18, 2013, 7:59 AM
Kunal VaishyaPosted Sep 16, 2013, 5:52 AM
krishnakumar kunaPosted Sep 16, 2013, 2:08 AM
1. is the string item is array?
2. how can get the 1,5,9th string alone
is this correct
firstvalue=item[1];
fifthvalue=item[5];
ninthvalue=item[9];
thanks in advance