limit on string size in c++?

Viewed 80874

I have like a million records each of about 30 characters coming in over a socket. Can I read all of it into a single string? Is there a limit on the string size I can allocate?

If so, is there someway I can send data over the socket records by record and receive it record by record. I dont know the size of each record until runtime.

8 Answers
Related