I am in need of two file handling routines, 1 is to get the number of lines in a particular file, and 2 is to check if a file exists....Can anyone help!!??
Printable View
I am in need of two file handling routines, 1 is to get the number of lines in a particular file, and 2 is to check if a file exists....Can anyone help!!??
Here's the one to see if the file exists:
Hope this helpsCode:If Dir("C:\TestFolder\hello.txt") = "" Then
'do something
Else
'do something else
End If
JK
Have a look at this thread for the other question
http://forums.vb-world.net/showthrea...threadid=31689
[Edited by kanejone on 10-03-2000 at 04:29 AM]
Thanks! But I found using the fso object and .fileexists() works as well!