Hi all,
I need some help on creating a file with name from user input like from textbox.
i have the following code with the filename in textBox2->Text but i dont know how i can get it done.
string::size_type j = line.find_first_of( " \t", iter );
string found;
found = line.substr( iter, (j == string::npos) ? j : (j -iter) );
const char * buffer=found.c_str();
string str (found.c_str());
int sizeNum = str.length();
long size = sizeNum;\
ofstream outfile ("temp.txt");
outfile.write (buffer,size);
outfile.close ();
textBox2->Text = System::IO::File::ReadAllText("temp.txt");;