Saving data to binary file rather than text one

Text file is changed with binary one and adding
EOL after each record was removed

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>