while (fread(&q[0], sizeof(uint8_t), 1, files_fps[0]) == 1) {
for (uint8_t j = 1; j < k; j++) {
if (fread(&q[j], sizeof(uint8_t), 1, files_fps[j]) != 1)
while (fread(&q[0], sizeof(uint8_t), 1, files_fps[0]) == 1) {
for (uint8_t j = 1; j < k; j++) {
if (fread(&q[j], sizeof(uint8_t), 1, files_fps[j]) != 1)