>This is related to another thread and got a good suggestion by Dragan to use FILETOSTR() function.
>
>So basically I'm using this function to copy the contents of a file to a string. The thing is that this file is the customer list used by an application, so it's very critical that I abide by it's rules to open this file. In the documentation these are the pre-requisites to opening the file by an outside application.
>
>1) File Handles must be used
>2) Should be opened with
> a. Inheritance Flag Set - This says the file is private to the current session
> b. Sharing Mode - Sharing mode should be set to Deny None.
> c. Access - Access Mode should be set for Read/Write access.
>
>What does FILETOSTR() do when it comes to these rules?
>
>I could just take the chance and see if there's a problem which I don't see happening but the system using this file is very critical so I can't afford to take the chance.
>
>Thanks.
Usually there are problems with filetostr() if the file is already somewhere opened for write access. If you want to avoid conflicts, then you may check first whether the file is available and not used.
Précédent
Suivant
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