Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/03/2011, 21:09
Avatar de JohnCarl
JohnCarl
 
Fecha de Ingreso: marzo-2011
Mensajes: 2
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Stream Reader

Intenta con este código:

using (StreamReader sr = new StreamReader("TestFile.txt"))
{
String line;
String cadena;
while ((line = sr.ReadLine()) != null)
{
cadena = lne;
}
return cadena;
}