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