Possible Duplicate:
What is the best way to slurp a file into a std::string in c++?
I assumed there would be a question like this already, but I couldn't find one. So here goes my question.
What is the shortest way to read a whole text file into a string? I only want to use features of the newest C++ standard and standard libraries.
I think there must be an one liner for this common task!