#include <stdio.h>

int main(void) {
 FILE *f;
 f = fopen("hoge.txt", "r");
 fseek(f, 0L, 2);
 do {
  putchar(getc(f));
 } while (!fseek(f, -2L, 1))
 return 0;
}