User Profile
Collapse
-
ya i checked that. it is not overwriting anything . but it is storing extra two square boxes at starting. to opena file i m using CArchive::Load and to save the file Carchive ::Store function but while parsing the file getting those boxes -
getting square box at starting
while parsing file i am getting square box at starting but next line it parse correctly this is my code don know hown to solve that. i cant use CStdioFile it wont support for windows ce
CFileDialog dlg(TRUE, _T("*.txt"));
if(dlg.DoModal( ) == IDOK)
{
CFile f;
if (!f.Open(dlg.Ge tFileName(), CFile::modeRead | CFile::typeText ))
return FALSE;
CString strTotal;... -
but only for first line it is showing square box in starting . for next line and all it parse correctly.i have to do substring comparision. if i take that first line string due to square box i cant do comparision. how can i remove that?
my code is:
to save file to text box:
CArchive ar(&f,CArchive: :store)
ar>>m_buffer;
to parse the file
if(!ar.readStri ng(StrLine))...Leave a comment:
-
any one help me please
while writing string from text file i am getting square boxes. i am using carchive function . its reading correctly but starting i am getting two square boxes. i am using embedded vc++ for windows ce can anyone tell me how to solve that?
i cant use cstdiofile it wont support:
No activity results to display
Show More
Leave a comment: