| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
====[[エンコーディング]]を指定してファイルを読む====
<pre>
using System;
using System.IO;
}
}
</pre>
*以下のようなエラーが出る場合
<pre>
System.ArgumentException: ''Shift_JIS' is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. '
</pre>
[[File:Cshart_shift_jis.png|600px]]
<pre>
using System.Text;
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
</pre>
 
====CSVファイルを解析(TextFieldParser)====
*http://msdn.microsoft.com/ja-jp/library/x710fk43.aspx

案内メニュー