Results 1 to 3 of 3

Thread: File Utils

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Crowthorne UK
    Posts
    14

    Unhappy

    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!!??

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Ireland
    Posts
    224
    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]

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Crowthorne UK
    Posts
    14

    Talking

    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
  •  



Click Here to Expand Forum to Full Width