Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filetostr()
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01139313
Message ID:
01139432
Views:
13
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform