def writeScottFile(output_name, header, data):
"""
Writes header and data information to a file.
Takes in a list of byte objects 'header',
a list of byte objects 'data' and an 'output_name'
which is the new scott file. The scott file contains
the byte objects in header and data.
"""
with open(output_name, 'wb') as scott_file:
for item in header:
scott_file.write(item)
for item in data:
scott_file.write(item)
评论列表
文章目录