using System.Collections.Generic;
public string ImeIprezime;
public static List<student> Iscitaj (List<student> lista)
StreamReader sr=new StreamReader("Fajl.txt");
while((line=sr.ReadLine())!=null)
string[] vrednosti=line.Split(',',';');
s.ImeIprezime=vrednosti[0];
s.indeks= Convert.ToInt32(vrednosti[8]);
s.ocene.Add(Convert.ToInt32(vrednosti[i]));
foreach(int ocena in s.ocene){
foreach (student sss in lista)
Console.WriteLine("{0},{1},{2},{3}",sss.ImeIprezime,sss.grad,sss.indeks,prsk) ;
StreamWriter sw=new StreamWriter("fajl.txt",true);
foreach (student ss in lista)
{sw.WriteLine("{0},{1},{2},{3}",ss.ImeIprezime,ss.grad,ss.indeks, prsk);}
public static void Main()
List<student> lista=new List<student>() ;