wifstream/wofstream names

Discussion in 'C++' started by Ioannis Vranos, Sep 30, 2008.

  1. Regarding wifstreams/wofstreams, is it possible to create files (where
    applicable) with wchar_t names in standard C++, given that their
    equivalent constructors accept a const char * and not a const wchar_t *?


    Or are we forced to use system-specific solutions?


    Thanks.
    Ioannis Vranos, Sep 30, 2008
    #1
    1. Advertising

  2. Ioannis Vranos

    Guest

    On 30 sep, 15:20, Ioannis Vranos <>
    wrote:
    > Regarding wifstreams/wofstreams, is it possible to create files (where
    > applicable) with wchar_t names in standard C++, given that their
    > equivalent constructors accept a const char * and not a const wchar_t *?


    Not yet.

    > Or are we forced to use system-specific solutions?


    Last time I checked, a Filesystem library was considered for TR2. The
    proposal is based on Boost.Filesystem, which supports wchar_t names:
    http://www.boost.org/doc/libs/1_36_0/libs/filesystem/doc/index.htm
    , Sep 30, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. std::wofstream

    , Sep 16, 2005, in forum: C++
    Replies:
    7
    Views:
    802
    P.J. Plauger
    Sep 18, 2005
  2. Ben Hetland

    ifstream and wifstream - combined

    Ben Hetland, Sep 20, 2005, in forum: C++
    Replies:
    0
    Views:
    622
    Ben Hetland
    Sep 20, 2005
  3. anubis
    Replies:
    2
    Views:
    1,296
    anubis
    Mar 21, 2006
  4. toton

    wstring & wifstream

    toton, Sep 29, 2006, in forum: C++
    Replies:
    9
    Views:
    2,555
    =?iso-8859-1?q?Kirit_S=E6lensminde?=
    Oct 2, 2006
  5. koara

    wifstream & locale

    koara, Feb 5, 2008, in forum: C++
    Replies:
    2
    Views:
    782
    koara
    Feb 6, 2008
Loading...

Share This Page