tools/txt2bin.cpp File Reference

Convert a dataset file from text to binary. More...

#include <cctype>
#include <cassert>
#include <iostream>
#include <fstream>
#include <string>
#include <boost/foreach.hpp>
#include <boost/format.hpp>

Namespaces

namespace  boost

Functions

int main (int argc, char *argv[])


Detailed Description

Convert a dataset file from text to binary.

Usage: txt2bin <input> <output>

Example input file:

 1 0 1 2
 2 3 4 5
 0.5 0.4 0.6 0.1
 

Each row of the text file must contain the same number of columns. Columns are separated by single spaces or tabs.


Get LSHKIT at SourceForge.net. Fast, secure and Free Open Source software downloads doxygen