We will start this chapter with a quick review of some file processing basics in C++ so that we can build a basic understanding of what the foundations that Qt classes are building upon look like.
Reading and writing files in Qt
Basics of file I/O performance
Files can be stored on rotational (hard drive) or solid state disks (SSDs). In the case of hard disks, there are considerable mechanical overheads involved, caused by the need to position the read-write head over the correct disk sector. However, once the correct position is reached, the reading of contiguous data is relatively fast.
Reading and storing files is one of the archetypal tasks of operating systems. It is located in the kernel and is already optimized on that...