Convert binary file data to a data array in C.
Fixed empty output file when the input file is invalid.
Added message to show how many bytes were converted.