Very quick question. I want to copy & paste textual data into the source code from the separate file using include directive.
Is it legal?
struct Record; // collection of data fields
Record rec = { #include "some_big_record.txt" };
int numbers[] = { #include "some_long_sequence_of_numbers.txt" };
It works on my box (GCC), but is it portable?
This is portable:
Record rec = {
#include "some_big_record.txt"
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With