A have a lot of experience in operating with files. I have written the complete software for Magnet Mapping system which, among other things, save the measurements into txt file and generates various kinds of reports for the user, including excel, pdf etc.