Click to See Complete Forum and Search --> : question by new user


alanchinese
May 14th, 1999, 05:06 PM
This is what I want to do: create a box (just like when you enter your user name in
www.hotmail.com) let the users enter some text and click a botton (just like what
the "sent" botton do) . then the program will
save the text the users have entered into a notepad text file.
this is just like what we use in UNIX, fwrite() function.


From Alan.

Jason Brooks
May 14th, 1999, 06:06 PM
Hello,

You want to have a look at the CFile class which makes things easier than fopen, fwrite etc.

As for the dialog, just use a CEdit control and use UpdateData(FALSE) to read the information to your Variable, (If your using MFC) Otherwise you'll need to do it the hard way

Jason
http://www.netcomuk.co.uk/~jbrooks