Is it possible to open a file and read only one byte at a certain position without having to load the entire file into an array?
For example, having a file of 10 bytes and reading the fifth.
Yes, fseekand fgetcthey will do just that.
fseek
fgetc
http://www.cplusplus.com/reference/clibrary/cstdio/fseek/
http://www.cplusplus.com/reference/clibrary/cstdio/fgetc/
Yes, use istream :: seekg to find the position you want to read, and then istream :: get read bytes (or istream :: read read more than one byte).