Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A File size function?
Message
De
16/07/1997 13:31:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00040249
Message ID:
00040264
Vues:
49
>>>>>I'm stuck here re-coding some old foxpro stuff. It's been a while since I've written anything other then VFP programs. I'm about to go crazy :-P. Ok, can someone point me in the direction of a function that will return the size of a file? I could redirect the output of the foxpro dir command and parse it into an array or something, but I would really prefer to avoid ugly functions like that.
>>>>Have you tried FSIZE()?
>>>>
>>>>John
>>>
>
>>>FSIZE() returns the size of a _field_ not the size of the file.
>>
>>
>>Hmm, that's the second response that suggested I use FSIZE(). Am I missing something here? The docs say that FSIZE() returns the size of a particular field. I am looking for the size of the file, however. The same as you get when you issue the dos DIR command.
>
>ADIR() will output files to an multi dimensional array, one which is file size thats the ONLY way!!!

That's amazing. Besides normal FSIZE with SET COMPATIBLE you can also use low-level functions to return the size. So what is the ONLY?
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform