I need to pass a file from the command line, read the [binary] contents, output to console, and create an output file. I have not added the create file section.
int main()
{
//variable for file being read in.
//prompt for file name and open the file
char fileName[50];
ifstream inFile;
int size=0;
cout << "Enter file to be read" << endl;
cin.getline(fileName, 50);
inFile.open(inFile, ios::in|ios::binary);
inFile.seekg(0, ios::end);
size = (int) inFile.tellg();
inFile.seekg(0, ios::beg);