_wfreopen()

Re-direct a stream to another file as a wide character version.

  #include <stdio.h>
  
  FILE *_wfreopen(const wchar_t *wfilename, const wchar_t  *wmode, FILE *stream);   
Parameter

wfilename

A pointer to a wide-character file name.

wmode

A pointer to a wide-character opening mode.

stream

A pointer to a file stream.

Remarks

The wfreopen() function is a wide character implementation of freopen().