"eShopping" <etrade.griffi...@dsl.pipex.com> wrote

I now understand why Python gave me the results it did ... it looks like reading the FORTRAN file will be a non-trivial task so probably best to wait until I can post a copy of it.

You don't say which OS you are on but you can read the
binary file into a hex editor and see the structure. If you are on *nix
you can use od -x and if on Windows run debug and use the d
command to display the file as hex

Using that you should be able to determine whether fields are
fixed length or delimited by a particular character or tagged
with a length prefix etc.

HTH,

--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to