|
-
Oct 3rd, 2000, 03:13 AM
#1
Thread Starter
New Member
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!!??
-
Oct 3rd, 2000, 03:26 AM
#2
Addicted Member
Here's the one to see if the file exists:
Code:
If Dir("C:\TestFolder\hello.txt") = "" Then
'do something
Else
'do something else
End If
Hope this helps
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]
-
Oct 3rd, 2000, 04:13 AM
#3
Thread Starter
New Member
Thanks! But I found using the fso object and .fileexists() works as well!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|