Не то... With C23, you have the option of using the #embed preprocessor
directive.
With it, you can write something like this:
#include<stdio.h>
constexpr unsigned char graphdata[] = {
#embed "somefile.bin" if_empty("somefile.bin is empty")
};
int main()
{
if(sizeof graphdata == 22)
puts(graphdata); // Prints "somefile.bin is empty\n"
else
printf("graphdata is `%s'\n", graphdata);
}