In the style of What is the best way to read an entire file into a std::string in C++? I want to ask a similar question, except that I want my output to be an array/STL container containing the lines in a text file.
C#/.net has the rather useful File.ReadAllLines() utility function, what would a good C++ (STL) version look like?