Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void AddAnime(Anime a) { a.IdAnime = GetId(); try { using (StreamWriter swFisierText = new StreamWriter(NumeFisier, true)) { swFisierText.WriteLine(a.ConvertToStringFisier()); } } catch (IOException eIO) { throw new Exception("Eroare la deschiderea fisierului. Mesaj: " + eIO.Message); } catch (Exception eGen) { throw new Exception("Eroare generica. Mesaj: " + eGen.Message); } }