説明
サーバー上のテキストファイルにテキストを追加します。
シンタックス
<cffile   | 
   
注意:このタグの属性は attributeCollection 属性で指定でき、その値は構造体になります。attributeCollection 属性で構造体の名前を指定し、タグの属性名を構造体のキーとして使用します。  | 
   
関連項目
履歴
メインの cffile タグのページの「履歴」セクションを参照してください。
属性
属性  | 
    必須/オプション  | 
    デフォルト  | 
    説明  | 
   
|---|---|---|---|
action  | 
    必須  | 
    
  | 
    このタグが実行するファイル操作のタイプです。  | 
   
file  | 
    必須  | 
    
  | 
    output 属性のコンテンツの追加先となるファイルのパス名です。  | 
   
output  | 
    必須  | 
    
  | 
    ファイルに追加する文字列です。  | 
   
addNewLine  | 
    オプション  | 
    yes  | 
         
  | 
   
attributes  | 
    オプション  | 
    
  | 
    Windows に適用されます。ファイルに設定する属性をカンマ区切りリストで指定します。 
  | 
   
charset  | 
    オプション  | 
    JVM のデフォルトのファイル文字セット  | 
    ファイルコンテンツをエンコードする文字エンコードを指定します。一般的に使用される値を次に示します。 
  | 
   
fixnewline  | 
    オプション  | 
    いいえ  | 
         
  | 
   
mode  | 
    オプション  | 
    
  | 
    UNIX および Linux だけに適用されます。許可を表す UNIX chmod コマンドの 8 進数値です。所有者、グループ、および他の利用者それぞれに割り当てられます。例 : 
  | 
   
例
| <!--The first example creates the file \temp\foo on a windows system and sets attributes to normal. --->  <cffile action = "write" file = "\temp\foo" attributes = normal output = "some text"> <!--- The second example appends to the file. ---> <cffile action = "append" file = "\temp\foo" attributes = normal output = "Is this a test?">  |