FILE *f1;
FILE *f2;
	
f1 = fopen ( "/temp/test1.bin" , "rb" );
fseek ( f1 , 0 , SEEK_SET );
							
f2 = fopen ( "/temp/test2.bin" , "wb" );
fseek ( f2 , 0 , SEEK_SET );
								
i = 5;
while ((i = fgetc(f1)) != EOF)
{
	fputc(i, f2);
}

fclose(f1);
fclose(f2);
Categories: C language

7 Comments

lottorich28 · 25/01/2025 at 13:34

… [Trackback]

[…] Find More Info here to that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

highbay · 28/01/2025 at 09:32

… [Trackback]

[…] Read More to that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

bangkok tattoo · 04/02/2025 at 02:27

… [Trackback]

[…] Find More here to that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

CEO88BET มีหวยอะไรให้เล่นบ้าง · 06/02/2025 at 04:25

… [Trackback]

[…] Read More Information here on that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

ทัวร์ยุโรป · 20/02/2025 at 03:06

… [Trackback]

[…] Find More here on that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

จองตั๋วรถทัวร์ · 06/03/2025 at 01:28

… [Trackback]

[…] Find More on that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

pigspin · 13/03/2025 at 07:27

… [Trackback]

[…] Info on that Topic: durukanbal.com/2021/01/17/c-write-read-file-binary-mode-sample/ […]

Leave a Reply

Avatar placeholder