DXF File parsing

I am a beginner trying to learn the niceties of Pascal, both Delphi
and Turbo Pascal, and would appreciate some help with a project to
read (possibly plot on screen !) Autocad DXF Files.

Any examples of  file parsing would be most helpful.