autowrap for .txt