Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FILE *fp;
- fp = fopen("Records.txt","r");
- cout<<"Category ID Name Author Quantity Price Racknn";
- while(fread(&b,sizeof(b),1,fp)==1){
- cout<<b.category<<" "<<b.id<<" "<<b.name<<" "<<b.author<<" "<<b.quantity<<" "<<b.price<<" "<<b.rackno;
- cout<<endl<<endl;
- }
- fclose(fp);
Add Comment
Please, Sign In to add comment