My question is : how can I store the content of a .txt file in a char* named m_str, in C++?
Kindly note that my file has a very defined format that I want to keep. I don't want to merge the lines together. I want what is one line 1 to stay on line 1, and what is one line 2 to stay in line 2. Because eventually I am going to serialize that char* and send it over the network, and when a node receives it, it will deserialize it and then put the content in a file and read the lines as they were in the original file.
Thank You.