C++ file splitter question
I can easily split the file by using fwrite function and save in a hard-disk.

like this;
fwrite( buffer, sizeof( char ), bytes_read, outFile );

But I would like to know how can I store each chunk of data inside a list or a vector, so I can transfer each chunk using winsock.
it feels like string class might have something useful, but I couldn't find it.
C++ file splitter question
===

I can easily split the file by using fwrite function and save in a hard-disk.

like this;
fwrite( buffer, sizeof( char ), bytes_read, outFile );

But I would like to know how can I store each chunk of data inside a list or a vector, so I can transfer each chunk using winsock.
it feels like string class might have something useful, but I couldn't find it.