Home > Back-end >  To cstdiofile. The contents of the file is copied to the two-dimensional array, in an assertion fail
To cstdiofile. The contents of the file is copied to the two-dimensional array, in an assertion fail

Time:10-01

Char * * pG=new char * [numGcode];
Cstrings strtext;
for(int i=0; I{
PG=new char [I] [20].
}
if (! File. The Open (PathName, CFile: : modeRead))
{
MessageBox (" file read failure ", MB_OK);
return;
}
Int ng=0;
While (File. ReadString (strtext)!=FALSE & amp; & Strtext. GetLength ()!=0)
{
Strcpy (pG (ng), strtext);
Ng++;
}
  • Related