reading SFG from file