Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/04/2010, 13:28
Avatar de Bazookao
Bazookao
 
Fecha de Ingreso: diciembre-2008
Ubicación: Mexico
Mensajes: 139
Antigüedad: 15 años, 5 meses
Puntos: 1
Respuesta: Leer linea de un fichero [vb.net]

Código VB:
Ver original
  1. Dim fs = New FileStream(AppDomain.CurrentDomain.BaseDirectory + "tuarchivo.txt" _
  2.  
  3.                                 , FileMode.Open, FileAccess.Read)
  4.  
  5.         Dim r As New BinaryReader(fs)
  6. for i =0 to variable
  7. linea(i)=r.GetValue()
  8. //puedes hacer GetString o GetInt como mas te convenga