using binary in python

Random832 random832 at fastmail.com
Tue Nov 10 15:44:38 EST 2015


Dennis Lee Bieber <wlfraed at ix.netcom.com> writes:
> 	To be strict -- a text file has <some> system defined means of marking
> line endings. UNIX/Linux uses just a <LF> character; Windows uses the pair
> <CR><LF>. TRS-DOS used just <CR> for end of line. Some operating systems
> may have used count-delimited formats (and then there is the VMS FORTRAN
> segmented records with start and end segment bits).

Another possibility would be fixed-length records. The ANSI C standard
permits a maximum line length (no less than 254) and for trailing spaces
to be ignored.




More information about the Python-list mailing list