37,720
社区成员
发帖
与我相关
我的任务
分享
open MyFile, ">a.txt";
print MyFile "SomeText";
close MyFile;
open( OUT, ">:utf8", "a.txt" ) or die "a.out: $!";
print OUT "\x{feff}";
print OUT "aaaa\n";
close OUT;
StreamWriter sw = new StreamWriter("a.txt", false, Encoding.UTF8);
sw.WriteLine("some text");
sw.Close();
open MyFile, ">:encoding(utf-8)", "a.txt";
print MyFile "SomeText";
close MyFile
;