Hello. I'm not quite familiar with the BCB so pls help me with this.
I wrote this code:
-----------------------
ifstream in("D:\\config96.h");
ofstream out("D:\\raspuns.h");
string line;
while(getline(in,line))
if(line.find("CONFMODE")!= -1){
for(int i=0;i<7;i++) line=0;
out<<line<<endl;
-----------------------------
it works..if i write it into a Console Wizard. But I whant to use it into a project with a form. What I actually whant is to write the lines not into another file but into a RichEditBox.
I don't know how to do that(if it is even possible).
Do I have to create a new class? or it is enought to create a method into Main?
...I'm realy confused..
ok.any advice?...
thanks.
}
I wrote this code:
-----------------------
ifstream in("D:\\config96.h");
ofstream out("D:\\raspuns.h");
string line;
while(getline(in,line))
if(line.find("CONFMODE")!= -1){
for(int i=0;i<7;i++) line=0;
out<<line<<endl;
-----------------------------
it works..if i write it into a Console Wizard. But I whant to use it into a project with a form. What I actually whant is to write the lines not into another file but into a RichEditBox.
I don't know how to do that(if it is even possible).
Do I have to create a new class? or it is enought to create a method into Main?
...I'm realy confused..
ok.any advice?...
thanks.
}