with open('C:\\users\desktop\Jhansi\parsing\out.exe', 'rb') as input_file:
with open('output.bin','wb') as output_file
for line in input_file:
output_file. Write(line)
In the above script i have to put the condition i.e from the offset value 00000200 to 00000400 i have to take the data between offset values i.e 00000200 to 00000400 and store this extracted data to separate file. I am attaching the image of the input file. I need one pointer for opening the input file I need second pointer for writing the extracted data to a separate file.