BITS_TO_UI
Convert text bits to 32 bit integers


BITS_TO_UI is a C++ program that converts a text file of '0' and '1' characters to a binary file of 32 bit integers.

Related Data and Programs:

DIEHARD, Marsaglia's randomness testing program, expects input in the form of the binary files output from BITS_TO_UI.

Usage:

bits_to_ui input_file output_file
processes input_file, a text file containing only the characters '0' and '1', and creates output_file, in binary format, containing the 32-bit integers created by grouping together 32 successive "bits" from the input file. The bits are read from left to right, in a sense, so a file whose first 32 characters are "11010000000000000000000000000000" will result in the first integer being 11.

Source Code:

Examples and Tests:

Test files you may copy include:

List of Routines:

You can go up one level to the C++ source codes.


Last revised on 05 January 2006.