C programming, copying binary files.(Using fread & fwrite) : C programming, problem with copying binary files.(Using fread & fwrite):`
#include <string.h>
#define PER_READ 30
int main(void)
{

	char buffer[500] = { 0 };
	FILE* CSV = fopen( "CSV.csv", "rb" );
	FILE* csvDest = fopen( "CSVDest.csv", "wb" );
	unsigned int finished = 0;
	unsigned int counter = 0;
	do
	{
		finished = fread( buffer, sizeof( char*), PER_READ, CSV );//Read all from CSV to a string name buffer
		finished += PER_READ * counter;
		counter++;
	} while (finished == PER_READ * counter);
	fwrite( buffer, sizeof( char* ), finished, csvDest );// write all to a the file CSVDest

	system( "PAUSE" );
	return (0);
}`
THANKS PEPOLE. :)