Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/07/2010, 10:23
Drinky94
 
Fecha de Ingreso: febrero-2010
Mensajes: 2
Antigüedad: 14 años, 3 meses
Puntos: 0
Respuesta: C# problemas para leer fichero

Mira aqui te dejo un ejemplo que hice yo hace tiempo:

Código:
using System;
using System.IO;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
            string Ruta = "C:\\prueba.txt";
            StreamReader Archivo = new StreamReader(Ruta);
            string Datos = Archivo.ReadToEnd();
            Console.Write(Datos);
            Archivo.Close();
        }
    }
}
salu2!