# コンポーネントの設定

## 手順

1. 最初のcFileコンポーネントをダブルクリックし、[Component] (コンポーネント)タブで[Basic settings] (基本設定)ビューを開きます。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cfile2.png)
2. 次のようにプロパティを設定します。
   1. [Path] (パス)フィールドに、input.txtとoutput.txtという2つのTXTファイルが存在するパス「C:/Talend/demo」を参照するか、直接入力します。
   2. fileNameフィールドに、使用するファイルの名前(この例では「input.txt」)を入力します。
   3. その他のオプションはデフォルト設定のままにしておきます。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cfile5.png)
3. 2つめのcFileコンポーネントをダブルクリックし、[Component] (コンポーネント)タブで[Basic settings] (基本設定)ビューを開きます。

   ![](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/Resources/images/use_case_cfile3.png)
4. 次のようにプロパティを設定します。
   1. [Path] (パス)フィールドで、入力ファイルパス「C:/Talend/demo」を参照または入力します。
   2. fileNameフィールドに、書き込むファイルの名前(この例では「ouput.txt」)を入力します。
   3. fileExistリストで[Move] (移動)を選択し、move/existingフィールドにmoveと入力すると、元の「output.txt」ファイルがmoveサブディレクトリに移動されます。
5. Ctrl + Sを押してジョブを保存します。