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.
While downloading the latest VB.Net my laptop automatically shutdown and when I tried to turn it on again it didn't boot and stays in black screen; cpu led not blinking but the laptop was still open. I thought it was overheat and when I try to open it the day ...
What does Google have from serving us with Google Fonts?
You can't tell me they just have well-doing spree and are sharing to help. Corporations are ...
I have a USB flash drive which was working properly for months, but today, when inserted into a workstation, it is being opened in read-only mode, whereby I can read and execute files on it, but not add anything to it or modify a document from it.