read the file directly into a stringstream buffer
Merge pull request #384 from ga2arch/stringstream

read the file directly into a stringstream buffer