[Tutor] Parsing DICOMRT file

Bryan Fodness bryan.fodness at gmail.com
Wed Dec 12 04:10:09 CET 2007

I am trying to parse a DICOMRT file, which is a radiation therapy DICOM

First, I get different outputs from the two methods below.

for line in file('file.dcm', 'rb'):
    print line

inp = open('file.dcm', 'rb')
print inp.readlines()

Second, I have never tried to parse a binary file.  I could use a few hints
to get started.


"The game of science can accurately be described as a never-ending insult to
human intelligence." - João Magueijo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071211/48fa828d/attachment.htm 

More information about the Tutor mailing list