Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOpen always returns -1 (Can't read or write)
Message
 
To
17/06/1998 07:31:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00108985
Message ID:
00109004
Views:
62
>The file temp.txt does NOT exist. I thought FOPEN() will create
>temp.txt if it doesn't exist (and the directory exists).
>
>I am actually testing for the existance of the directory.
>If the directory exists (which it does for now), then
>FOPEN should create the file if it doesn't exist (I thought).
>
>If the temp.txt can't be created, I assume the directory
>doesn't exist.
>
>I have been using a work around [ON ERROR ? CHR(7)] but don't
>like it.
>
>
You can't use the DIRECTORY() function for this? You didn't mention what version you were using and I don't know if it exists in 3.0.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform