Talendで処理した結果をCSVファイルとして出力できるtFileOutputDelimitedの紹介です。
まずはファイル→ファイル出力内にあるtFileOutputDelimitedを配置します
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-96.png)
何か適当な結果が出力されるコンポーネントを接続します。
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-97.png)
今回はこんな感じの出力がされるものとします。
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-102.png)
次にtFileOutputDelimitedをダブルクリックして開き、ファイル名に任意のファイルパスを入力します。また、デリミタの初期値がセミコロンなので、「フィールド区切り」をカンマに修正します。
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-98-1024x181.png)
これだけでファイル出力されます。ただWindowsだと文字化けを起こすので少し修正します。
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-99.png)
tFileOutputDelimitedの設定画面で詳細設定のタブを開き、エンコーディングにCUSTOMを選択し、値に"MS932"と指定します。
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-100.png)
これで以下の様にちゃんと表示されるようになりました。
![](https://hitoriit.blog/wp-content/uploads/2021/07/image-101.png)