Needed a refresh on C++ file handling, had a play with some simple reading and writing of strings for some file parsing I'm doing for a research project.