C Question: How to store data inside the executable file

Posted by michael on Stack Overflow See other posts from Stack Overflow or by michael
Published on 2010-04-11T18:31:34Z Indexed on 2010/04/11 18:33 UTC
Read the original article Hit count: 204

Filed under:
|
|

Hello all, complete newbie here,

I need to find a way to store 250 KB of plain text numbers inside my program's executable file.

Usually, I would put the data in a separate file and let the program read it while it is running, but that's not an option here. Instead, the program and the data need to be in one executable file.

I have absolutely no idea how to do it (except writing 250.000 #defines :-) and I'd appreciate any suggestions.

Thank you very much!

© Stack Overflow or respective owner

Related posts about c

    Related posts about data