Information générale
Catégorie:
Codage, syntaxe et commandes
>Since there's no such thing as record looking with a file that has been opened via FOPEN() then I would say that you wouldn't want to open it shared for anything other than read-only access. (Won't that work?)
>
>You could come up with a big mess if you wish to let two people write to the same file at the same time.
>
>>>>When trying variations of the FOpen() command in the command window, it will except 0-12 as the second parameter, but only 0,1,2,10,11, and 12 are documented. Does anyone know what 3-9 are and if you can set fopen to open a file shared? Thanks.
>>>
>>>Joe,
>>>
>>>Even going back to FPD 2.5 these values aren't documented. I can't detect anything in the bit pattern that's helpful either. For example, bit 0 set being read, bit 1 write, etc. It obviously doesn't work like that. Further more, since the values have remained the same since the DOS days, it's unlikely that you can find any direct relationship between these parameters and the flags that are used by the Win32 function CreateFile() (which this probably maps to). So, in short, it looks like pretty much of a "test and guess" situation.
>>
>>Oh well. Thanks. I'll fool with them some and see what I come up with. Thanks again.
I only want to open it with read access, another app opens it for writing.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement