title: how to pre-allocate memory for a std::string object?
body: <p>I need to copy a file into a string. I need someway to preallocate memory for that string object and a way to directly read the file content into that string's memory?</p>