Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import a binary file into VFP.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00019096
Message ID:
00019137
Views:
50
>>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.
>>
>
>Yes, the app that created it is the only app that can "read"
>it in the native format, but, let's face it, when you're
>reading bytes, it really doesn't matter what app created it.
>
>What may matter is whether or not the file came from a UNIX
>system where each line is terminated differently than is in
>the PC world.
>
>What system or app is creating that file, "PHONE1.PDB"?
>
>==Carl

Carl,

I don't know what app created the *.pdb file but I do know the
person running it is using a PC with Win95. I've never seen
the extension before. At first I thought it was Paradox, but I
guess not as VFP could have imported that directly.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform