If you want to read 3 ints at a time, then why not have a buffer
int buff[3];
Then you would only need to cast a pointer in file.read()
If you want to read 3 ints at a time, then why not have a buffer
int buff[3];
Then you would only need to cast a pointer in file.read()
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.