Hello,
I have three different string strings
string attach1,attach2,attach3;
string attachment="text1.txt,document.doc,text2.txt";
i want the above string should be split and each string after splitting it should store into three different strings
ex: attach1="text1.txt";
attach2="document.doc";
attach3="text2.text";
there should be a check how many string are coming after splitting the comma and then it should store into the attach1,attach2,attach3.
if
string attachment="text1.txt,document.doc";
here only 2 strings i will get after splitting...
then i must store it only in attach1 and attach2. since there is no string for attach3... it should be ignored.
please reply.