made function to load file info (dispatches on correct file format), function
to load single record from a file (dispatches on correct file format and record type)