I have a text file which have data as below
[1] [apple] [market]
[2][toy]asdv[shop]sdvdsrdt
And I have created code to extract data from [].
foreach (var line in File.ReadLines(@location))
{
IEnumerable<string> str;
str = line.Split('[').Skip(1)
.Where(x => x.Contains(']')).Select(x => x.Split(']').First());
textBox1.Text = textBox1.Text + str.GetEnumerator() + Environment.NewLine;
}
So now I'm stuck in deviding the data to separate text box eg ([1] [apple] [market]), I would be able to show the data is separate textbox. value 1 in textbox1, apple in textbox2, market in textbox3. and another button that will remove the data from textbox and show the second line of data in the text file. can any body help me with this