This is essentially the same question as you posted
here[
^]. If you do not understand the basics of reading information from a file and plotting points, drawing lines, on an output device then you need to go back to your study guides and programming tutorials and spend some time getting familiar with these aspects of development.