If you were taking the simplistic approach - just printing all the printable characters, then


if ( isprint(fileBuffer[loop]) ) printf("%c", fileBuffer[loop]));


But the binary data will mean...