Hi: I have two pointers
char* pointer1;
char* pointer2;

in a loop, new data are read from file into buffer pointed by pointer2 and the old data should move from pointer2 to pointer1; pointer1 always pointer to the old data, and pointer2 always points to new data;

how can I do that?

Thank you