writing to a file
If you have a wizard and you have textboxes filled out. what i want is next: if you press on the next button the text within the textboxes needed to be write into a txt file. How?
Thank you very much in advance
SigwarthSoft
sigwarthsoft@hotmail.com
http://www.sigwarthsoft.2000c.net/
icq#: 62538030
Maastricht, Netherlands
Stefan Sigwarth
Are you asking how to create a file or how to get the text from the textboxes?
how to get te text from the textboxes into a file
SigwarthSoft
sigwarthsoft@hotmail.com
http://www.sigwarthsoft.2000c.net/
icq#: 62538030
Maastricht, Netherlands
Stefan Sigwarth
SigwarthSoft
sigwarthsoft@hotmail.com
http://www.sigwarthsoft.2000c.net/
icq#: 62538030
Maastricht, Netherlands
Stefan Sigwarth
The text from the textboxes is retrieved with GetWindowText().
You can create a text file with fstream, that way you can handle writing and reading the same way you treat cout and cin, e.g.
file << text << endl;
You can create a text file with fstream, that way you can handle writing and reading the same way you treat cout and cin, e.g.
file << text << endl;
I always though you had to use it like this!
file.put(char)
or
file.get(char)
I had many MANY functions just to put simple things like numbers into the files and read them again. That is why I switched to the stdio.h FILE. It would be nice to just use an fstream like cout or cin...
www.trak.to/rdp
file.put(char)
or
file.get(char)
I had many MANY functions just to put simple things like numbers into the files and read them again. That is why I switched to the stdio.h FILE. It would be nice to just use an fstream like cout or cin...
www.trak.to/rdp
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement