リストボックスですと良く理解できません・・・。
リストボックスの読み込みはできているのですが
書き込みが出来ていないようです・・・。
言語はVC++です。
どなたかご教授いただけないでしょうか?
////////////////////////////////////////////////// 読み込み これは出来ているみたいです
System::IO::StreamReader^ sr =
gcnew System::IO::StreamReader("config.txt",System::Text::Encoding::GetEncoding(932));
sr->ReadLine();
String^ Item;
while((Item = sr->ReadLine()) != nullptr){
this->listBox->Items->Add(Item);
}
sr->Close();
////////////////////////////////////////////////// 書き込み こちらができていないです・・・。
System::IO::StreamWriter^ sw =
gcnew System::IO::StreamWriter("config.txt",false,System::Text::Encoding::GetEncoding(932));
int count = this->listBox->Items->Count;
for(int i=0; i<count; i++){
sw->Write("aa");//this->listBox->Items->ToString()
}
sw->Close();
MessageBox::Show("ファイルに書き込みました。","メッセージ");