function to draw a shape with a .txt file