can anyone explain this line for me?

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 .
bluecoder:ok.thanks!
"the length of the size of the inventory structure" <----- what is the sentences mean??
"the length of the size of the inventory structure

soory i mean to say the size of the inventory(struct) .
Topic archived. No new replies allowed.