Bonjour, j'aimerais pourvoir sauvegarder les options de mon jeux de poker dans un fichier txt. J'arrive à le crée mais je ne sais pas comment je pourrais récupérer les données.
Voici ma fct qui enregistre mon fichier .txt :
StreamWriter
foc =
new
StreamWriter(
"option.txt",
false);
// ecrit les données des joueurs ds un fichier textefoc.WriteLine(NomJ1.Text);
System.IO.StreamReader sr = new System.IO.StreamReader("option.txt");
NomJ1.Text
= sr.ReadLine());
NomJ2.Text
= sr.ReadLine());
sr.Close();
Sa ca devrais marcher ...
________________________________________________________________________
Hardware is what we play with until it breaks, Software is what we play with until it works !