>>803
バッファは関係ないってば......
output interface の質問を get_word() のループより前に持ってこい。
つまりデータ読み込む前に入力先、出力先の両方ともを尋ねておく。