Does anyone have a better method of doing this...
Dim myLof as Long
Open "A File.txt" for Append as #1
myLof = LOF(1)
Close
If myLof =<1 then
Kill "A File.txt"
else
'Read in the file
end if
I don't like using this because it creates a file if it does not exist... and if it does but it's empty... it deletes it anyway...
is there a solution using VBscript FSO (FileSystemObject)?
I scanned through the doc's but I didn't see anything at a glance...
I was just wondering if anyone else has had this issue before and found a better solution. And if so, if they have any comments of the other method (the Ups and Downs)
Sometimes... the BASIC things in life are the best...
or at least the most fun ;-)
-Josh Stribling
Dim myLof as Long
Open "A File.txt" for Append as #1
myLof = LOF(1)
Close
If myLof =<1 then
Kill "A File.txt"
else
'Read in the file
end if
I don't like using this because it creates a file if it does not exist... and if it does but it's empty... it deletes it anyway...
is there a solution using VBscript FSO (FileSystemObject)?
I scanned through the doc's but I didn't see anything at a glance...
I was just wondering if anyone else has had this issue before and found a better solution. And if so, if they have any comments of the other method (the Ups and Downs)
Code:
Thnx -N- Advnc
Josh Stribling

or at least the most fun ;-)
-Josh Stribling