Python Binary File Read and Parse

view story

http://www.unix.com – Hi to everyone :), i have a challenge right now in python that for now needs a bit of help in one part of the c0de. The task is create a new file with the name of the file defined by the ASCII content between the 3 byte and the 16 byte that is parsed from the binary file, the file is over 20 Mb i need to create a file for each record ( each record contains the len of 820 ), so right now i know how to read it and do something with it, like : Code:         Code:         #!/usr/bin/python with open("file", "rb") as f: & (HowTos)