I dunno if there are a few ways, if so I'd like to know them all. But how do turn a string from a textBox into an int and also a char?
Thanks
Last edited on
I got a code a while back, but it confused me to no end.
So, Just so I'm clear how would you do this?
#include <iostream>
#include <fstream>
int main()
{
int a;
a = textBox1->Text GetWindowText();
ofstream myfile;
myfile.open ("example.txt");
myfile << a;
myfile.close();
system("example.txt");
}
Is that all the actual code you've got??
What is textBox1 ??
Thanks, could this also be used to name the "myfile"?
ofstream myfile (str2);
???