def write_to(self, f, version = None):
if not version:<EOL><INDENT>version = self.version<EOL><DEDENT>if version == <NUM_LIT:1>:<EOL><INDENT>header = "<STR_LIT>"<EOL><DEDENT>elif version == <NUM_LIT:2>:<EOL><INDENT>header = "<STR_LIT>"<EOL><DEDENT>header =  header%dict(url          = self['<STR_LIT:url>'],<EOL>ip_address   = self['<STR_LIT>'],<EOL>date         = self['<STR_LIT:date>'],<EOL>content_type = self['<STR_LIT>'],<EOL>result_code  = self['<STR_LIT>'],<EOL>checksum     = self['<STR_LIT>'],<EOL>location     = self['<STR_LIT:location>'],<EOL>offset       = self['<STR_LIT>'],<EOL>filename     = self['<STR_LIT:filename>'],<EOL>length       = self['<STR_LIT>'])<EOL>f.write(header)<EOL>
Writes out the arc header to the file like object `f`. 

If the version field is 1, it writes out an arc v1 header,
otherwise (and this is default), it outputs a v2 header.