// Wrapper for cInventory LoadFromFile function void LoadInvFromFile(cInventory & inv, const char * filename) { ifstream file(filename); if (file.is_open()) { inv.LoadFromFile(file); file.close(); } else cout << "Error: Unable to open " << filename << endl; }