How to compile a txt into an exe
-
My program reads some data from a txt. I want to compile the txt into the exe itself, so I won't distribute the txt file. If possible, how? Thanks.
You can add the text as a resource, most likely just add it to the settings, which means they will appear in the app.config file.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
My program reads some data from a txt. I want to compile the txt into the exe itself, so I won't distribute the txt file. If possible, how? Thanks.
If you go with putting it as a resource, then people can still look at it using a resource editor like ResHack... If you want full security, encrypt it first, then add it in the resource script. But then again, some hacker with a disassembler can decode the encryption key and view the file... If your program can read it, then anyone (with sufficient experience) can also. (Which is exactly why software developers are having tough times with piracy... there's no way to prevent it. :()
Windows Calculator told me I will die at 28. :(