This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.

👻 a few days ago there is a fan crazy private letter I asked: “blogger, blogger, have what method can I see the night of the small video/love action novels to hide, hide the more hidden the better, I am afraid of my girlfriend found beat me!” (after listening to my straight joy oh, visible this is a veritable henpecked oh ~) 👻

😬 AT the beginning I refused, after all – I’m a serious person! But he said he liked, commented and liked my blog almost immediately. It immediately touched me, so I decided to help him out (cough, that’s not why I decided to help him out, just because I love fans)! 😬

After reading this article, you will be able to keep your “little secret” between men.

♥️ Don’t worry, watch the demo first

B standing video address: player.bilibili.com/player.html…

  • 🎯🎯 is simply an image named “prune plus.jpg”, but when I changed the suffix to.zip, the image became a compressed file (you can hide any file you want in it!). 【 isn’t it magical, isn’t it secret ~】🎯🎯
  • 👑👑 thus fulfilling the fan’s wish to hide his little secret in any very serious picture, which can be accessed at night whenever needed ~👑👑

💎 homemade image file synthesizer

  • I hope you like this design. I’ve shared a detailed tutorial below on how I went about doing this, along with the complete code for the entire design.
  • You can just copy and paste it. However, it is better to teach a fish than to teach a fish, so I hope friends can follow my rhythm, a little bit of learning the whole design of each step, I believe that to see the end, friends can do not only use, but also know the principle of magical operation to achieve oh!

First of all, directly on the actual operation steps, follow the OK!

🎉1. Detailed explanation of operation procedures — small white follow can also be achieved

  1. First, you need to create a folder for all the files you need to use (this blogger created a folder called “Tests”).

  1. Next, you need to find an image to display (note: this image is used as a camouflage, the more serious the better);

  1. Next, you can put all your resources (whether images, videos, or fiction files) into this folder!

  1. Compress all your resource files into one zip package!

  1. The most critical, is also the most exciting moment – take out this blogger artifact – “artifact. Exe”, put into this folder, double click operation, according to the steps in accordance with this input picture name, resource compression package name, synthetic file name can!

6. Later words – I think there will be a lot of friends like the resources shown in my demo, I am not vague, directly to you (change the suffix to.zip can discover the new world oh!) (because the file and the picture are merged together, so this picture is a little big, direct play can not be put, so I uploaded to Baidu net disk -> extract code: GHZ6Click me to download this picture ~

🎅2. Directly access the C language code

#include<stdio.h>
#include<stdlib.h>

int main(a)
{
	FILE *f_pic,*f_file,*f_finish;
	char ch,pic_name[20],file_name[20],finish_name[20];
	printf("Please enter the name of the image and file resource you want to compose :\n");
	printf("Picture (suffix oh!) :");
	scanf("%s",pic_name);
	printf("File (suffix oh!) :");
	scanf("%s",file_name);
 	printf("Combine into :");
	scanf("%s",finish_name);
	
	if(! (f_pic = fopen(pic_name,"rb")))
	{
		printf("Open picture: %s failed !!!! \n",pic_name);
		return 0;
	}
	if(! (f_file = fopen(file_name,"rb")))
	{
		printf("Open file: %s failed !!!! \n",file_name);
		return 0;
	}
	if(! (f_finish = fopen(finish_name,"wb")))
	{
		printf("Open composite file: %s failed !!!! \n",finish_name);
		return 0;
	}
	
	while(! (feof(f_pic))) { ch = fgetc(f_pic); fputc(ch,f_finish); } fclose(f_pic);while(! (feof(f_file))) { ch = fgetc(f_file); fputc(ch,f_finish); } fclose(f_file); fclose(f_finish); system("pause");
}
Copy the code

🎃3. Talk about some of the methods that appear in the code

  • FILE *fp
  • Fp = fopen(filename, use file);

This function opens a file. Note that an error when opening a file using this function returns a NULL pointer value. So you can use this information to determine whether the file was opened successfully.


  • ch = fgetc(fp)

This function reads a character from the open file FP and feeds it into ch.


  • fputc(ch, fp)

This function outputs the character (the value of ch) to the file pointed to by FP.


  • feof(fp)

This function is used to determine if the file is really closed. If complete, the return value is 1; Otherwise 0.


  • Fclose (file pointer)

This function is used to close the file. The return value is 0. Otherwise, EOF (-1) is returned.

💝 wuhu – finished!

Maybe some small white do not have c environment, also need this method, so this blogger will directly share my EXE file to everyone (download the following picture, OPERATION I believe you will certainly ~) :

🌻🌻 If you have learned something from this article and enjoyed it, then I am honored. Please share this article with your friends, like && bookmark it, and feel free to discuss the technology in the comments section, or give us your sincere opinion. 🌻 🌻

🌹 end of this article, very happy to meet you – I am [lonely], a boy like computer! 🌹