Results 1 to 5 of 5

Thread: < empty file >

  1. #1

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    < empty file >

    If Len(Dir$(appPath & "Bday.txt")) > 0 Then 'returns 8 as file does exist

    MsgBox FileLen(Dir$(appPath & "Bday.txt")) 'craps out on file not found.....

    how do you tell if the file has no content??????
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  2. #2
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    That exact same code works for me. However, FileLen returns 36, and the file is empty. ????

  3. #3

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    that's what I thought..the code is good...ok. I'll delete the stupid file and create a new one..perhaps it's a dud of a file.

    thanks
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    Disregard that. I was hard coding the path. The problem is that Dir$ only returns the file name, not the path, remove Dir$ from the MsgBox statement.

  5. #5

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    I should be s*** on burried dug up and p***** on and then left in the sun...

    stupid me...I left the Dir in the filelen statement...
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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