System.IO.StreamReader srNoEncode = new System.IO.StreamReader("abc.txt");
這種寫法會有亂碼
 
要指定編碼
System.IO.StreamReader srDefault = new System.IO.StreamReader("abc",System.Text.Encoding.Default);

System.Text.Encoding.Default是系統預設編碼,會因你系統設定的地區語言不同而不同。
arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()