Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

File inside a executable?

Hello everyone.
I am wondering is there a way so I can put for example "test.txt" file inside my executable so that I can access it later with fopen()?

Hopefully I explained well.

Thank you! 🤝
Contents inside test.txt would be nothing more than binary data which notepad interprets.
Yes, you can store the contents of test.txt inside your application. But you can not put the actual "test.txt" file inside your application. You have to understand, it's all just binary information.
When you call fopen, you will simply name it test.txt, and write the contents back into a file.
yes you can, write to the end of the .exe , then use fread at position filesize + bytes written
http://stackoverflow.com/questions/29332...pplication There you go.
(Dec 19, 2015 09:57 PM)Mouse❤️ Wrote:  http://stackoverflow.com/questions/29332...pplication There you go.

Lemme guess under 1 minute to use google and find an answer?
C\C++\ASM Programmer. Looking for Jobs

(Dec 20, 2015 12:25 AM)Russ. Wrote:  Lemme guess under 1 minute to use google and find an answer?
7 seconds if you include the typing time.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Eternal BlueMay 14, 2022 04:02 PM 4 228 May 14, 2022 04:02 PM
Last Post: Sajuuk
[C#] by indetectableFeb 17, 2022 06:12 AM 15 644 Feb 17, 2022 06:12 AM
Last Post: indetectable
[C] by SIM-1866423Dec 12, 2018 09:56 AM 5 311 Dec 12, 2018 09:56 AM
Last Post: SIM-1866423