473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

wifstream/wofstream names

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.
Sep 30 '08 #1
1 1542
On 30 sep, 15:20, Ioannis Vranos <ivra...@no.spam.nospamfreemail.gr>
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.../doc/index.htm
Sep 30 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kari Laitinen | last post by:
During the past 15 years I have been writing computer programs with so-called natural names, which means that the names (identifiers, symbols) in progarms are constructed of several natural words....
7
by: kaalus | last post by:
Hi All, I just tried to use wide streams with C++. But something really strange is happening (my compiler is MSVC, wchar_t size is 2 bytes): std::wofstream s("a"); s << L'A'; s.close(); ...
11
by: FNX | last post by:
I'm stumbling around a little bit here trying to get a feel for wide/Unicode functionality. I'm pretty up on C++ in general, streaming stuff not so much. If I run the following code, I get a...
2
by: anubis | last post by:
Heay, i've got this problem: http://rafb.net/paste/results/lpNgbn49.html i'm using wifstream to read utf-16 file and i've got this problem, that each byte is read into seperate char while...
9
by: toton | last post by:
Hi, I have my program using wstring everywhere instead of string. Similarly I need to process some file, which contains unicode or ascii character. I need to stream them. Thus I use wifstream etc....
3
by: mimi | last post by:
With a wofstream, we can input wstring into a file. But when i input some wide character of chinese characters into a file, some error occur. With the implementation of STLport 4.62, the wstring...
3
by: jraul | last post by:
Why does the following code create an empty file? I am using Windows XP. #include <iostream> #include <fstream> int main() { std::wofstream fout("data.txt");
2
by: koara | last post by:
Hello all, I needed to read contents of an UTF8 encoded file in C++ (gcc version 3.3.5 on Linux). I decided to do it the C++ way, using streams: ------------- std::locale...
6
by: Jeffrey Walton | last post by:
Hi All, I'm attempting to write a wstring to a file by way of wofstream. I'm getting compression on the stream (I presume it is UTF-8). How/where do I invoke an alternate constructotor so that...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.