I read from a file and am printing to another file this what the printerfile looks like, what is wrong with the source code for it to not format correctly
void Initialize(fstream&bankfile,fstream&printerfile)
{
char Filename[51];
char Printfile[50];
cout << "Enter name of the file to be open:";
cin >> Filename;
bankfile.open(Filename, ios::in);
cout << "Enter name of the file to be sent to:";
cin >> Filename;
printerfile.open(Filename,ios::out);
if(bankfile.fail())
{
cout << "Error on opening the file"
<< endl;
}//if
if(printerfile.fail())
{
cout<< " Error on opening the file"
<<endl;
}//if
}//Initialize