Advertisement

writing to a file

Started by February 10, 2000 08:46 AM
3 comments, last by SigwarthSoft 24 years, 7 months ago
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?
Advertisement
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
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;
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

Yanroy@usa.com

--------------------

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

Yanroy@usa.com

This topic is closed to new replies.

Advertisement