They are formats for exchanging map data. They consist of meta data (where the corners are, which quad, what type of layer it is, etc) and a series of records containing points for polygons, lines and nodes, etc.
It's not too hard to script, since there's a set spacing for each column, but I'm sure someone has a better way than just using a bunch of substr()'s.