Hi, I am trying to separate data using the split function and to send the data to two different list, one integer and one string list. I'm stuck on this part and would be grateful if someone could explain the process to me. I'll be pasting the code below.
Thank you for your time.
Thank you for your time.
C#:
private void Form1_Load(object sender, EventArgs e)
{
StreamReader Reader;
Reader = File.OpenText("Scores.txt");
//these are the data found in scores.txt
/* Anna,87
John,98
Paula,67
Melissa,82 */
List<string> listName = new List<string>();
string line;
while ((line = Reader.ReadLine()) != null)
{
string[] split = line.Split(',');
}