I think he needs to know how to dynamically allocate the array...
char *buffer = NULL;//<-- good style dictates initializing to nullptr.
buffer = new char;//<-- array of 1024 characters.
//use array with familiar notation
delete  buffer;//<-- delete the allocated memory so you don't "leak" it.
buffer = nullptr;//<-- good style. delete doesn't do this for you.
by pseudorandom21: Woops, didn't notice he had done so.