Why do you presume that head/tail will read the whole file? That’s not what tail.c does. Source: over 3 years ago