Hey again ...:P
Now i have problem with save & load from/to text file.
private: System::Void załadujPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
OpenFileDialog^ dig = gcnew OpenFileDialog();
dig->Filter = "PlayList(*.PLS)|*.PLS";
if(dig->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
listBox1->Items->Add(IO::File::ReadAllText(dig->FileName));
}
}
private: System::Void zapiszPlaylisteToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
SaveFileDialog^ dig = gcnew SaveFileDialog();
dig->Filter = "PlayList(*.PLS)|*.PLS";
if(dig->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
System::IO::File::WriteAllText(dig->FileName, listBox1->Items);
}
}
How i can do that?
Anyone can write some example?
Thx for read that :P