==== Lecture d'un fichier texte ==== System.IO.StreamReader file = new System.IO.StreamReader(textBoxIdModele.Text); string Text = file.ReadToEnd(); file.Close(); ==== Lecture d'un fichier texte ligne par ligne ==== List lines = new List(); string line; System.IO.StreamReader file = new System.IO.StreamReader(@"c:\test.txt"); while ((line = file.ReadLine()) != null) { lines.Add(line); }