public static void Sauve(entreprise e) { FileStream fichier = new FileStream("Entreprise.txt", FileMode.Create); BinaryFormatter bf = new BinaryFormatter(); bf.Serialize(fichier, e); fichier.Close(); }
static void Main(string[] args) { e = PersisteEntreprise.Charger("Entreprise.txt"); run(); }