Hi,
i'm making a simple texteditor from VB6, and i use Visual C++ as my back end.
i call a function where in I will read another text file and put it in a structure.
this is the function:
void loadR()
{
ifstream file;
file.open("C:/CaseStudy/CaseStudy/Rsrvd.txt",ios::in);
for (i=0; i<44; i++) {
file.getline(sign[i].RsrvdWrd,13,'\n');
}
file.close();
}
sample text file:
alnum
burn
decimal
default
embed
goodbye
ifnot
sample output:
alnum (then there is an extra character displayed in the richtextbox(from vb6), a square)
but when i copy and paste it the square gone.
can some one help me? or rather suggest what to do? thanks