[サンプルコード]
Form Form1 {
X = 0;
Y = 0;
Width = 400;
Height = 300;
Button Button1 {
X = 5;
Y = 5;
Width = 145;
Height = 20;
Title = "Shift_JIS → EUC-JP";
Function OnTouch( e ) {
var fs = new FileSystem();
var fr = fs.open( "shift_jis.txt", FileSystem.OPEN_READ );
var fw = fs.open( "euc_jp.txt", FileSystem.OPEN_WRITE );
var text_converter
= new TextConverter( fw, "Shift_JIS", "EUC-JP" );
text_converter.Write( fr.Read() );
text_converter.Close();
fr.Close();
fw.Close();
}
}
if ( !$DESIGNTIME ) {
}
}
|