Iam trying to write a TCHAR array value to a file.But i am not getting it correctly.I should get the data continously.But iam getting Null between each character.
1. The code you posted does not compile when _UNICODE is defined. Nor when it isn't, for that matter. So how can you have run it?
2. What do you mean by output?
You do know that, in bytes, little-endian Unicode text for regular chars is like 'I', '\0', 'N', '\0', 'P', '\0', 'U', '\0', 'T', '\0' (where the bytes are shown by their chars.)