def write(self, fptr):
self._validate(writing=True)<EOL>length = <NUM_LIT:16> + <NUM_LIT:4> * len(self.compatibility_list)<EOL>fptr.write(struct.pack('<STR_LIT>', length, b'<STR_LIT>'))<EOL>fptr.write(self.brand.encode())<EOL>fptr.write(struct.pack('<STR_LIT>', self.minor_version))<EOL>for item in self.compatibility_list:<EOL><INDENT>fptr.write(item.encode())<EOL><DEDENT>
Write a File Type box to file.