sysopen(MAINFEED, $main_file, O_RDONLY | O_LARGEFILE) or die "Cannot open main feed file $main_file";