>> I need to import data from a binary file (*.PDB)
>> into a VFP DBF. FOPEN() returns a -1 which is
>> an error so I cannot do it this way. Any ideas?
>
>FOPEN has never seen a file it doesn't like. <g>
>
>I've been able to open every file you can imagine
>with FOPEN. Perhaps you really have a small
>syntax type problem. What is the exact line of
>code that gives returns a -1 to you?
>
>==Carl
Hi Carl,
I've never run into a problem with FOPEN either
until now. I have a file called phone1.pdb on
a diskette. I used lnFile = FOPEN("A:\PHONE1.PDB",10)
and also tried lnFile = FOPEN("A:\PHONE1.PDB")
Both gave a -1 lnFile value which is an error. That's
why I posted the message. In VFP 5.0's help under
"binary", it says that a binary file can only be read
by the application that created it.
Thanks,
Steve Despres
sdespres@erols.com