1Likes -
1 Post By ex-mortis
Reading from file stream using ifstream object and storing in a map
This is a discussion on Reading from file stream using ifstream object and storing in a map within the C++ Programming forums, part of the General Programming Boards category; Code:
void loadGames(){
std::ifstream load("Gamelist.gl");
num_holder;
title_holder;
hours_holder;
load.getline(num_holder, 1, ' ');
load.getline(title_holder, 20, ' ');
load.getline(hours_holder, 5);
Games[num_holder].title = ...