Hi,
I have the following problem. I want to include a multi-line textfile as #define, i.e. what I need is a constant that stores the value of the text file. Example:
File 'f.txt': This\nis\n\nsome\ntext
and I want to initialize a constant (at compile time) in the style of
#define txtfile "This\nis\na\ntextfile"
where the string "This\nis\na\ntextfile" is obtained from concatenating the lines in file f.txt. Is there any way to achieve this using preprocessor commands/macros?
Thanks in advance