Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Detect no data in a text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01043067
Message ID:
01043071
Vues:
8
>
>What I need to do is to detect that a text file has no data in it so that I can run a FoxPro program that will reverse an update flag field. The Question is How do you detect that a text file has no data in it? Use low-level commands?

You can use adir() to check the file size or
fopen() followed by
fread()

I think adir() would be best.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform