|
-
Jun 29th, 2001, 05:31 AM
#1
Thread Starter
_______
< 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
-
Jun 29th, 2001, 05:38 AM
#2
Addicted Member
That exact same code works for me. However, FileLen returns 36, and the file is empty. ????
-
Jun 29th, 2001, 05:41 AM
#3
Thread Starter
_______
<?>
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
-
Jun 29th, 2001, 05:41 AM
#4
Addicted Member
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.
-
Jun 29th, 2001, 05:46 AM
#5
Thread Starter
_______
<?>
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|