Saber si existe un fichero

1989 vistas

Vamos a usar la clase System.IO.File y su método Exists



vbnet
  1. If System.IO.File.Exists("c:\miFichero.txt") Then
  2.     ' el fichero existe
  3. Else
  4.     ' el fichero NO existe
  5. End If