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:05:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00108985
Message ID:
00109402
Views:
26
Gene --

You might already have the same file opened.

Bill
>Assuming my code reads,
> p_path="c:\temp\"
> path_ok = FOPEN(p_path+'temp.txt',11)
>
>path_ok always returns -1 (Can't read or write)
>
>The directory does exist.
>
>I have tried all the buffer codes,
>0 Read Only Buffered
>1 Write-Only Buffered
>2 Read and Write Buffered
>10 Read-Only Unbuffered
>11 Write-Only Unbuffered
>12 Read and Write Unbuffered
>
>
>Why does it always return -1?
>
>Thanks,
Previous
Reply
Map
View

Click here to load this message in the networking platform