 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
peter Guest
|
Posted: Wed Dec 17, 2003 3:40 pm Post subject: getting text from EditBox? |
|
|
hi, how can I get the text that is typed into an Edit Box placed
into a char array or char * variable? For example, I have an Edit
Box where the user should type the path to a file. I need to output
that to a file, using write(). is there a better way? if not, then
how do i do this? thanks
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Dec 17, 2003 5:59 pm Post subject: Re: getting text from EditBox? |
|
|
"peter" <peterna (AT) attglobal (DOT) net> wrote
| Quote: | I have an Edit Box where the user should type the path to a file.
I need to output that to a file, using write().
|
AnsiString str = Edit1->Text;
fwrite(str.c_str(), str.Length(), 1, myfile);
or
fwrite(str.c_str(), sizeof(char), str.Length(), myfile);
Gambit
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|