Include text data in an unusual manner...

  • Thread starter Thread starter thrikris
  • Start date Start date
T

thrikris

I am trying to use a include file to include a whole bunch of text data
in my source cpp file.
This text data can change so I have to maintain it as a separate file
and have something that works like a #include directive.
Eventually I want a variable looking like this
char *myStr = "all the text from include file here.......".

uisng something like this....
char*myStr = "#include "somefile" ";

any ideas on how to implement this will be appreciated ?
 
I am trying to use a include file to include a whole bunch of text data
in my source cpp file.
This text data can change so I have to maintain it as a separate file
and have something that works like a #include directive.
Eventually I want a variable looking like this
char *myStr = "all the text from include file here.......".

uisng something like this....
char*myStr = "#include "somefile" ";

any ideas on how to implement this will be appreciated ?

The easyest way is probably to put it in the resources.
 
Back
Top