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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top