I am writing a program that creates a formatted file for a user, but he not only creates a formatted file, but also does more.
I want to distribute one binary code to the end user, and when the user starts the program, he will generate an XML file for the user with the relevant data.
To achieve this, I want to provide the file contents of a char array variable that is compiled in code. When the user starts the program, I will write out a char file to create an XML file for the user.
char* buffers = "a xml format file contents, \ this represent many block text \ from a file,...";
I have two questions.
Q1. Do you have any other ideas on how to compile the contents of my file to a binary, i.e. Distribute it as a single binary.
Q2. Is this even a good idea, as I described above?
source share