Skip to content

ngocdaothanh/file2array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

See http://stackoverflow.com/questions/5679834/convert-binary-data-into-hex-string-for-c-program

Customize $filenames and $writer_format in file2array.rb, then run:
ruby file2array.rb

On Mac, you can use xxd:
xxd -i foo.png