Dumps the file to a byte array in C
bin2hex -v VarName FileIn FileOut
bin2hex -v MyText input.txt output.h
File: input.txt
quick brown fox jumps over the lazy dog
File: output.h
unsigned char MyText[] =
{
0x71, 0x75, 0x69, 0x63, 0x6B, 0x20, 0x62, 0x72, 0x6F, 0x77, 0x6E, 0x20, 0x66, 0x6F, 0x78, 0x20,
0x6A, 0x75, 0x6D, 0x70, 0x73, 0x20, 0x6F, 0x76, 0x65, 0x72, 0x20, 0x74, 0x68, 0x65, 0x20, 0x6C,
0x61, 0x7A, 0x79, 0x20, 0x64, 0x6F, 0x67
};