Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Detect no data in a text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01043067
Message ID:
01043071
Views:
9
>
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform