I made a simple Universal-File-Duplicator (Example: make 125 duplicates of one file).Very useful if you want to fill a whole USB flash drive or an old harddisk with an important file (Example: Bitcoin wallet.dat or privatekey) and you don't want to hit Ctrl+V all the time...Suggestions? Improvements?#include stdafx.h#include stdio.h#include <stdlib.h>#include <strstream>#include <string>#include <iostream>#include <fstream>#include <conio.h>using namespace std;int main(int argc, char* argv[]){    char nummer[1000000], sourcefile[255], targetfile[255], targetfileneu[255], endung[255];    int i = 0;    int anzahl = 0;    ifstream Quelldatei;    printf(Welcome! You are using UNIVERSAL-DATEI-DUPLIKATOR v1.0\n);    printf(Filename? (Example: test.txt)\n);    gets(sourcefile);    printf(New Filename without ending? (Example: filename)\n);    gets(targetfile);    printf(Ending? (Example: .txt)\n);    gets(endung);    printf(How many times do you want to create the file?\n);     scanf(%d, &anzahl);    for (i = 0; i < anzahl; i++)    {        sprintf(nummer, %ld, i);        strcpy(targetfileneu, targetfile);        strcat(targetfileneu, nummer);        strcat(targetfileneu, endung);        printf(Targetfilename: %s\n, targetfileneu);        Quelldatei.open(sourcefile, ios::binary);        if (!Quelldatei)        {            cerr << ERROR!\n;            return 0;        }                                            ofstream Zieldatei(targetfileneu, ios::binary);        if (!Zieldatei)        {            cerr << ERROR!\n;                    return 0;        }        else        {            int c;         while ((c = Quelldatei.get()) >= 0) { Zieldatei.put(c); }        }        memset(&targetfileneu[0], 0, sizeof(targetfileneu));        Quelldatei.close();        Zieldatei.close();    }    printf(SUCCESS!\n);    system(pause);    return 0;}
Universal File Duplicator
c++;file;console