Original Post
Ok, so I am working on a Dynamic Buffer to hold data for a project I am working on but I am unsure if the code I am working on will work properly. So basically could I use all the [header],[length],[string_of_words] or would I need to add these differently? Like on by one?
char *dataBuffer = NULL;
dataBuffer = new char[header],[length],[string_of_words];
//I'll then do all the reading, or writing to the dataBuffer here.
delete[] buffer;