Hi everyone,
Ok, I have a binary file which has 400 lines and contains 50 bytes per line.
Problem is of course, the file is in binary and when I open it in a regular text editor, it's all garbage that's displayed. Apparently, that's because, from what I understand, the data is compressed.
How can I uncompress it such that each byte from the 50 byte line displays 8 bits each, thus 0 and 1's so I can put this into an array and continue on?
Is it with the fopen command where I must add "wb", b being for binary that it reads correctly or is there an actual algorithm to transform each byte into bits of 0 or 1?
Any help/ideas would be appreciated...
Ok, I have a binary file which has 400 lines and contains 50 bytes per line.
Problem is of course, the file is in binary and when I open it in a regular text editor, it's all garbage that's displayed. Apparently, that's because, from what I understand, the data is compressed.
How can I uncompress it such that each byte from the 50 byte line displays 8 bits each, thus 0 and 1's so I can put this into an array and continue on?
Is it with the fopen command where I must add "wb", b being for binary that it reads correctly or is there an actual algorithm to transform each byte into bits of 0 or 1?
Any help/ideas would be appreciated...