Just wait till you find out that you can do:
const char *s =
#include "test.txt"
;
const char *s =
#include "test.txt"
;
Doing
const char *s = "
#inclued "test.txt"
";
won't work, since the preprocessor won't interpret directives inside string literals of course.In many assemblers, there is a directive called "incbin" which pastes in unstructured binary data at the point of usage. I just found a very clever C and C++ wrapper [1] for that, which gives you an INCBIN() macro. Nice!
float vertices[] = {
#include "stuff.txt"
};