You could write a program to write your data!
Code:
#include <stdio.h>
static unsigned char data[] = {
0x46, 0x6F, 0x6F, 0x20, 0x62, 0x61, 0x72, 0x21, 0x21, 0x21, 0x20, 0x20, 0x20, 0x20, 0x20
};
int main(int argc, char *argv[]) {
FILE *f = fopen("out.data","wb");
if(f == NULL) {
fprintf(stderr,"Unable to open file\n");
return 0;
}
if(fwrite(data, sizeof(data), 1, f) == 1) {
fprintf(stderr, "Written data successfully\n");
} else {
fprintf(stderr, "Write wrror\n");
}
fclose(f);
return 0;
}
Here's the output and a dump of the resulting data file:
Code:
$ gcc -o writedata writedata.c -Wall -pedantic -O4
$ ./writedata
Written data successfully
$ od -t x1 out.data
0000000 46 6f 6f 20 62 61 72 21 21 21 20 20 20 20 20
0000017
Just remember when you put in hex numbers, you need to put "0x" in front of the them, to let the compiler know that it is hex.