Copied this right out of the vfp help (except for the filename:)
STORE FOPEN('C:\WINNT\Profiles\administrator\Ntuser.dat') TO gnFileHandle
and
?fopen('C:\WINNT\Profiles\administrator\Ntuser.dat')
always returns -1 (couldn't open the file)
I do have rights to the file, and I can open it in notepad. I also successfully opened and read some other files.
>Hi Roi,
>
>>Hmm. I tried some LLFF (never used any of those before) but it wouldn't open. Oh well, just curious actually.
>
>It didn't work? What did you do? Try:
>
>?fopen('c:\windows\user.dat')
Roi
'MCP' Visual FoxPro
In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!