im beginner in c++.i try to understand this code but i cant find what is this code mean..can anyone explain this line for me? while(fp.read((char*)&iv,sizeof(inventory)))
Hi , while(fp.read((char*)&iv,sizeof(inventory)))
This line means read from the file pointer as character pointer to the length of the size of the inventroy structure .