TFileStream *TT=new(TFileStream("Test.txt",fmCreate);<br> WideString strTemp="test黃花菜<br> char a=0x0a;<br><br> WideString ra+=WideString(a);<br> a=0x0d;<br> ra+=WideString(a);<br> strTemp+=ra;<br> TT->Write(strTemp.c_bstr(),strTemp.Length()*2);<br> //以上OK!<br> //以下有問題會出現亂碼,Word字段是漢字<br> strTemp+=WideString(adoqWord->FieldByName("Word")->AsString)+ra;<br> TT->Write(strTemp.c_bstr(),strTemp.Length()*2);<br>// TT->Write(strTemp.c_bstr(),strTemp.Length());<br><br> delete TT;<br>