テキスト ファイルを 1 行ずつ読み込んでいますが、これまでのところ問題ありません。私はこれを使用します:
using (StreamReader sr = new StreamReader(this._inFilePath))
{
string line;
int index = 0;
// Read and display lines from the file until the end of
// the file is reached:
while ((line = sr.ReadLine()) != null)
{
//skip empty lines
if (line == "")
{
continue;
}
}
}
ファイルを読み取った後、ファイルを Unicode に変換する必要があるかもしれないことに気付きました。それはどのように行われますか?誰も Convert クラスを使用していますか?