I study working with files. When writing the word "New word" everything seems to be fine. But in the output before the "new word" comes a line of one Chinese character. What can it be and how to win it.
HANDLE hFile; TCHAR slovo[] = _T("Новое слово"), P[30]; hFile = CreateFile(_T("proba2.zzz"), GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL); DWORD HH; WriteFile(hFile, slovo, sizeof(slovo), &HH, NULL); ReadFile(hFile, P, sizeof(P), &HH, NULL); MessageBox(NULL, P, _T("Win32 Guided Tour"), NULL); CloseHandle(hFile);