Bonsoir,
tu peux utiliser un StreamReader
StreamReader sr = new StreamReader(@"C:\toto.txt");
while (sr.Peek() > 0)
{
Console.Write((char)sr.Read());
}
mais si tu veux lire un fichier tu peux utiliser les méthodes static de System.IO.File
par exemple File.ReadAllLines(@"C:\toto.txt");
Cyril
-
MSP -
MCTS ASP.net & SQL