Read 2D shape from text file.