Ok, I am fairly new in using Python, but have a pretty good understanding of it. But I'm up against something that I just can't figure out.
I have an archived file that I am trying to take apart into individual files. It isn't a zip file, but an ascii file of individual files concatenated together with NULLs (hex 00) and CRs between them.
I wrote a function that rips through the file line by line and replaces the NULLs with CRs, and then I go through it again and remove the lines that start with a CR. This works great, and I rip through a 1 MB file in 2 seconds. But, some of the files have a random hex1A, which is an EOF. I tried opening the file with "rb" instead of "r", but then I lose my carriage returns in the resulting files (either Python or Windows must be doing something to the files when I open it in binary). When I open it with "r", it simply will not go past the first "x1A".