+ 1
Two different projects working on same text file
Hi I have a text file which is having fixed path on a system. Can I open this text file from two different exe at same time using the File* ? I just need to read in one project and write into other project. I couldn't pass file* pointer to different projects but path of the file is fixed
2 Answers
+ 2
Have you tried it to see what happens ?
I think the problem should be similar to accessing file from multiple threads.
0
No not yet... I am planning to implement this ... As I can't pass file pointer, I can't work on mutex as well... So planning to implement mutex through registry that which project should access file pointer... Trick is like it should allow to atleast keep both the projects to keep it open. Read and write in file will be protected by me I guess