Came across the following stuff, which does work, but I want the character representation, not the file. Is there something similar???

ofstream out("binary.txt", ios::binary);
out.write((char*)&products, sizeof(products));
out.close();

ProductInfo test[10];

ifstream in("binary.txt", ios::binary);
in.read((char*)&test, sizeof(test));
cout << test[2].get_make();