What you probably want is a Hex Editor, which will read any file and display the data in hexadecimal,the format you've shown you want, and in ASCII. A good one will let you export the data as hexadecimal to a text file.
If something is stored on a harddisk, then it is already represented in binary. A harddisk (or any other traditional storage like cd's, dvd's, usb sticks, tapes, etc) only implements a list of 1's and 0's. Everything must be written in terms of that in order to be stored on the disk.
Simularely, anything represended in RAM is also represented as 1's and 0's.
If you wanted to write a program to take a file and produce it's binary representation in ASCII, then you can do so by loading the contents of the file into memory, converts each byte into it's binary representation in binary. This can be done by dividing by the radex and checking for the remainder 8 times (assuming that each byte is 8 bits long).
However in your first post, you gave an example of the hexidecimal representation in ASCII. Again, this can be converted using the same proccess (but by dividing by 16 and checking remainder twice. Note that 2^4=16, so you can just look at the nibbles to convert from binary to a hexidecimal representation as well.).
Though as mentioned, you can always use a hex editor (which is easy enough to convert to binary in your head anyways).
Ps. If your looking for a way to represend a binary file in ASCII, it would be more efficient to use ASCII85 representation instead, or more commonly, BASE64.
I'm having issues with my TrendMicro anti-virus software where my disk activity hits 100% for 10-15 minute periods randomly throughout the day. TM tech support has made a few suggestions but in order to track their effectiveness I have to monitor my disk activity in such a way that I ...
I recently purchased a new Vizio 55" LED 1080p tv but I'm having trouble connection my Nintendo 64 to it. The red & white audio cable are working fine and I'm getting all of the audio but there is not yellow port on my new tv for the N64's yellow ...
I got a Notbook from a friend to fix it, strictly speaking, installing a fresh copy of operating system. The Netbook brand may be not a well-known brand, "ChiliGreen Netbook" model "Neo", the Netbook comes with Windows XP Home edition. First I tried to install Windows 7 X86 on ...