Text.txt
Hi how
are you
Hey
There
char* strings;
How do I dynamically allocate enough data for strings and properly and copy it into memory?
Text.txt
Hi how
are you
Hey
There
char* strings;
How do I dynamically allocate enough data for strings and properly and copy it into memory?
Use std::string. It will handle the allocation for you.