read shape from file