Copying a text file with executable file

Hi,
I have one text file with more than 500 words. I wants to use that text file in my program, so as to copy that file to desired location while running the executable.

Is there any way exists to save that file with the executable as a single exe file.

Thanks
Thanks hamsterman for your response!

I am explaining my query again,

Suppose if i wants to use a icon in my project i can include that icon file as a resource in my project and my exe file contains that icon in it.
But here i wants to include a simple text file in my project and i wants to use that text file in my project as a normal file. How can i achieve this behavior. I am nor getting any idea how can i do this or if it is possible or not??


Yes, it's possible. You need to convert your binary/text to a c array. Programs like that exists, they're usually called bintoc or bin2c or so

This might one: http://www.programmersheaven.com/download/17063/download.aspx
@coder777

Thanks thanks alot!!

its very appreciable. thanks for the idea of converting that file into structure. that was awesome as i didn't thought of that.

Thanks again.
Topic archived. No new replies allowed.