Skip Navigation

www.wimb.net - File Histogram

File Histogram This program makes a Histogram of the byte contents of a file. It reads a file and counts the bytes inside that file. Then it places the counted bytes in a graph with one bar for each byte. The longest bar represents the highest number of bytes. It starts with byte $00 on the left side and ends wit $FF on the right.

Examples



Typical Text File Histogram

Typical EXE File Histogram

Typical ZIP File Histogram

Typical Micosoft Document File Histogram

Overview

The program has not a real practical use. It gives an impression how it looks inside a file and how much is inside. It's interesting to see the differences among the file types on a disk.

At the right there are some images with a typical histogram of some popular files.
Very special are the files from Microsoft, they look almost empty. Look at the DOC, XLS, PPT and BMP files and see how inefficient they use the disk space.

This overview shows something everyone knows already, zipped files are smaller then normal files.
However, in this overview all the File Histograms can be viewed by clicking on the file size.

FnameSizeZippedRatioMS
Format
bmp.bmp 261'494 9'57996y
doc.doc 264'192 104'23961y
exe.exe 266'240 102'08362y
gif.gif 310'097 304'7462n
jpg.jpg 262'985 253'9523n
pdf.pdf 259'924 232'95510n
txt.txt 264'572 75'01872n
xls.xls 250'880 78'94769y
zip.zip 268'476 267'2361n

It can be seen that typical Microsoft files are more or less "empty". There is almost nothing inside. That is the reason that they can be zipped with a very high compression ratio. Please note that all files in this example have a size of about 260.000 bytes.

File Histogram

Menu

The menu has four main selections:

  • File
  • Text
  • Graph
  • Help

File is used to open a file, to exit the program and to save the counted bytes in a *.FHN file. This a normal txt file with a special extension. Inside it contains a list of bytes and their counted values.

Text shows the collected data in a grid. If a cell of the grid is selected then the character value and the number of bytes is shown in the lower right corner of the screen.

Graph shows the counted bytes in a graph. If the mouse pointer is exactly above a bar, then at the bottom right some information about the selected byte is shown.

Help brings up the help file with all information about this program, a direct connection to my site and the History and About pages in this help file

Download and installation

The program file and the help file can be copied to any convenient place on a Windows computer. No additional files or DLL's are needed.

Program DownloadSource Code DownloadHelp Files DownloadNo Data Files
PID: 2026 CLT: 0.003 LMD: 2013-Aug-17

Updated 2007 Oct. 09

There is 1 comment

http://www.replica-watch.cn free fonts