Appended 't' to fopen mode string to open in text mode.