Home > Software engineering >  Why write utf-8 documents, fclose collapse?
Why write utf-8 documents, fclose collapse?

Time:10-12

 WCHAR strTest [MAX_PATH]; 
Cstrings strInfo;

The FILE * pFile=NULL;
StrFileName="TEST. BIN";
Int iRet=fopen_s (& amp; PFile strFileName, "w +, CCS=utf-8");
If (0!=iRet)
{
return;
}
Int k=0;
For (int I=1001; I & lt;=1051; I++)
{
//# define the SEPARATOR 0 this is x1b. H defined inside the
Wmemset (strTest, SEPARATOR, MAX_PATH);
, strInfo GetDlgItemText (I);
Wmemcpy (strTest, strInfo, strInfo GetLength ());
Int j=strInfo GetLength ();
If (I & lt; 1051)
{
j++;
K=fwrite (strTest, 1, j, pFile);
}
The else
{
K=fwrite (strTest, 1, j, pFile);
}
}
Fputws (L "\ n", pFile);

The fclose (pFile);

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,
  • Related