エンコードを使用したファイルの読み取りおよび書き込み

エンコード・インスペクターを使用して、各種エンコードを使用するファイルの読み取りおよび書き込みを行うこともできます。

次の例は、エンコードが Windows-1253 (ギリシャ語) のファイルの最初の行を読み取って、エンコードが Windows-1252 (英語) のファイルにその行を書き込むアクションを示しています。

delete "{(client folder of current site as string) & "/__appendfile"}"
action uses file encoding Windows-1253
appendfile 
{
line 1 of file "/tmp/Greek.txt" of encoding "Windows-1253"
}
delete "/tmp/encode.txt"
move __appendfile /tmp/encode.txt