char [] issue

Go4Expert Member
11Nov2010,14:44   #1
micsom's Avatar
I just came accross a piece of code like:

char arrname[]={
#include "xxx.txt"
};

what does this mean?
Go4Expert Member
11Nov2010,16:01   #2
micsom's Avatar
anyways...thanx i just debugged it and got the answer...
Mentor
12Nov2010,22:20   #3
xpi0t0s's Avatar
It's perfectly valid; if xxx.txt contains
"hello",
"world"

then after preprocessing arrname will be defined as
char arrname[]={
"hello",
"world"
};