read input structure file in serial or parallel depending on the format