Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a secret to using FSIZE() with files?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Is there a secret to using FSIZE() with files?
Miscellaneous
Thread ID:
00443388
Message ID:
00443388
Views:
32
According to the Fox documentation, I should be able to use FSIZE() to return the size of a file in bytes.

But I can't figure out how to get it to work.

For example, I created a file called c:\junk.txt, added some garbage strings to it and closed the file.

Then I tried the following commands:

? fsize("c:\junk.txt")
Returned 0

? fsize("c:\junk.txt",1)
Returned 0

? fsize("junk.txt")
Returned 0

? fsize(junk.txt)
Errored: "Alias 'Junk' not found"

Could one of you please enlighten me?

Thanks!

DJM
David Martin
Next
Reply
Map
View

Click here to load this message in the networking platform