read structure from a single file