Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using fputws and fwprintf with unicode files.

Status
Not open for further replies.

kup

Programmer
Aug 11, 2002
3
0
0
DE
I want to write unicode strings into a unicode file, whereby the strings themselves have been read from another unicode file. The problem is that the end of the string (0dh 00h 0ah 00h) is never written correctly.

fputws writes 0d 0a 00 0d 0a 00 instead and
fwprintf writes 0d 0a

In both cases the file cannot be read correctly afterwards.

How can I use the procedures correctly? (I am using Microsoft Windows 2000 (german) and Microsoft Visual C++ 6.0)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top