Thanks ArkM and Salem for your response.
Salem, I like your suggestion. If you're familiar with C++ threads, would it be possible for you to give me a quick code sample? I'm really not sure how message passing and thread initiation works in C++.
Many thanks for your help in advance.
Hi,
My question is with regards to accessing the same text file from multiple threads. The code that each thread runs is in different files. Each thread has a write function. I have a main function (in a separate file) that initiates these threads. I want to open a file (perhaps using ofstream)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.