Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/07/2009, 05:09
Mirador
 
Fecha de Ingreso: abril-2007
Mensajes: 82
Antigüedad: 17 años
Puntos: 0
Respuesta: Problema al leer caracteres extraños [VS-2008]

Vale, soy un caneloide... ya lo resolví >_<

Código:
Public Function fLeerTXT(ByVal strFichero As String)

        Dim reader As IO.StreamReader = New IO.StreamReader(strFichero, System.Text.Encoding.Default)
        Dim strTexto As String
        Try
            strTexto = reader.ReadToEnd
            reader.Close()
            fLeerTXT = strTexto
        Finally
            reader = Nothing
        End Try
    End Function
saludos y gracias igualmente