Archive for the ‘VB.Net’ Category
Check If File Exists using VB.Net
FileInfo is a object derived from System.IO name space.
FileInfo has a property called “Exists”. This propery returns true if the file exists. False if file does not exists.
=========(VB.NET)=============== Imports System.IO Declare Dim testfile As New FileInfo("c:\My Document\testfile.txt") If testfile.Exists() Then return true Else return false End If
