write_tableで任意のテキストを出力できる.2つ目の引数が"a"ならappend, "w"なら新規ファイルに書き出し.
write_table("wr_path","a",[/text/],"%s")