It's probably completely unnecessary for you to have "infinite" arrays of characters. There's a limit to the number of characters you can put in a text area without the program you're using slowing to a crawl, and you can easily store Strings larger than limit. I don't know what it is, but it's tens of thousands, not millions.
But if you must have infinite arrays, there's a way to do it. Just make more than 1 array of some huge size (maybe 1 billion or something). The first array is the start of the text. The second array is the second part of the text. And so on.
You basically just need to store the number of arrays and have multiple arrays. I haven't use C in a while, so I'm not sure if you could just do a 2d array. You might have to use pointers.