(C++) FileToStringList
February 24, 2017 · View on GitHub
(C++) FileToStringList
FileToStringList is a file I/O code snippet to obtain the contents of a file as a TStringList.
#include <memory> std::auto_ptr<TStringList> FileToStringList(const std::string& filename) { std::auto_ptr<TStringList> s(new TStringList); s->LoadFromFile(fileName.c_str()); return s; }