I posted question about how to add a cr/lf to a string written by WriteFile();
None of proposed solutions worked.
Ultimately the file will be read on a regular DOS system and needs to be in ASCII not unicode.
the strings are simple time values:
At the moment the end result is unicode.
How to write a file with normal ASCII characters using WriteFile().
Here's the code I'm using at the moment
T = _T("00:00:00\n");
BOOL Ret = WriteFile ( hFile, T, T.GetLength() * sizeof(TCHAR), &BW, NULL);
The file ends up with unicode characters, and no \n...
Why is something so simple so difficult !