Re: Write/Read of wchar in buffer/file
- From: "Tom Serface" <tserface@xxxxxxx>
- Date: Fri, 12 Aug 2005 08:08:49 -0700
Let me see if I understand... you want to write a Unicode string to a file
that may or may not contain non-Unicode characters and then read them back.
I've never done that, but it sounds problematic to me. If it were me I'd do
the whole thing in Unicode then use CFile to do the file handling. That
said, I think you can still use CFile, I just think your file will be
difficult to parse.
Tom
"Viraj" <Viraj@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:22F592A1-6BE6-4283-95E0-25C92BBCC0FF@xxxxxxxxxxxxxxxx
> Hello All,
>
> I have a buffer (lets say x) pointed to by WCHAR *. I have to write this
> buffer x to a file which also contains Non-Unicode chars. Finally I have
> to
> read the wchars x from the file and write them to a buffer pointed to by
> WCHAR *.
>
> Can anyone please let me know what calls I can use to store the buffer to
> the file and read from the file and copy it to the buffer ?
>
> Thanks,
> Viraj
> a.viraj@xxxxxxxxxxxx
> http://www.mobiliti.com
> 732-248-8300
.
- References:
- Write/Read of wchar in buffer/file
- From: Viraj
- Write/Read of wchar in buffer/file
- Prev by Date: Re: Using MFC with another compiler mingw
- Next by Date: Re: timing a function
- Previous by thread: Write/Read of wchar in buffer/file
- Next by thread: Re: Write/Read of wchar in buffer/file
- Index(es):
Relevant Pages
|