Topic: Why can't file names be wide characters?
Author: Alan Stokes <alan@rcp.co.uk>
Date: 1997/01/10 Raw View
Why is it that when I open a file stream the file name I supply has to
be a char * (e.g. in ifstream::open)? This seems to be the case for all
files and file streams, regardless of whether they will be used to
access wide characters.
There seems to be a general assumption that file names are simple char
strings, but there is at least one platform (NT) that supports wide
characters in file names. How about adding an overload which allows
this?
(And for extra credit, how about allowing string or wstring file names,
rather than just C-style strings?)
--
Alan Stokes (alan@rcp.co.uk)
RCP Consultants Ltd
Didcot, UK
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]