I'm trying to make a text editor with open, save, and font buttons.
I copied the code off the board in class and obviously incorrectly.
FileStream is an undeclared identifier.
Suggestions?
Code as follows:
Code:private: System::Void SaveBtn_Click(System::Object * sender, System::EventArgs * e) { SaveFileDialog * fd = new SaveFileDialog(); if(fd->ShowDialog() == DialogResult::OK) { MessageBox::Show(fd->FileName, S"FileName"); FileStream* fs = new FileStream(fd->FileName, FileMode::OpenOrCreate); StreamWriter * sw = new StreamWriter(fs); } }