Hello
I am pretty new to C#. I have a text file separted by comma, which I want to read one by one into multiple text boxes.
For eg : text file looks like this
A,a,20,abc
B,b,30,xyz
C,c,40, lmo
I want to read 20, 30 , 40 into textbox1 , 2 and 3 respectively.
Since my textfile is as big as 100 lines and 100 text boxes, I am trying to use some function which could optimize the code.
I have used this function now to read the value but I dont know how to do for 100 lines.
File.ReadLines(" .txt").Skip(1).Take(1).First().Split(',')[2]
Would really appreciate any help:)
Thanks!