BITS_TO_UI
Convert text bits to 32 bit integers


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

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.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

BITS_TO_UI is available in a C++ version.

Related Programs and Data:

ASCII_TO_MRI, a C program which restores magnetic resonance imaging (MRI) data to its original binary format, having been previously converted to an ASCII text file.

Source Code:

Examples and Tests:

List of Routines:

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


Last revised on 05 January 2006.