public static Muser Splituser(string line) { Muser user=null; try { string[] arr = line.Split(whitespace); user = new Muser(arr[0], arr[1], arr[2], arr[3], arr[4]); } catch (IndexOutOfRangeException e) { Console.WriteLine(e.Message); } return user; }
public static void Add(Muser m) { wr.WriteLine(m.ToString()); wr.Close(); }