How would you change a file into a list?

I'm trying to create a load function for the artist but i don't really get how to change a file into a list. This is what i tried but it didn't work because invalid arguments

public List<Artist> loadingArtist(out List<Artist > artistlist)

 { List<Artist> artistLog = new List<Artist>(); using (StreamReader reader = new StreamReader("Artist_List.txt")) { string line; while((line = reader.ReadLine()) != null) { artistLog.Add(line); } } } 

by barcemo via /r/csharp

Leave a Reply