Hi,
I am reading a .csv file which contains Japanese characters.
I am using ifstream to parse the file and getline() to read each line in the given file.
As the file contains Japanese characters so file format is Multibyte character set (MBCS).
So it appends 3 special characters at the begining of the file, out of which one is the header to denote that the file format is MBCS.
Now how can i read this file having Japanese character by making sure that i should not read those 3 special characters..
so far i am using this .....
TCHAR *filename = "F:\\GPDM.csv";
wstring temp;
wifstream fstr;
fstr.open(filename, ios::in);
if (fstr.fail())
{
std::cout<<"File Open Error\n";
}
else
{
std::cout<<"File Open Success\n";
}
getline(fstr, temp);
Here "temp" still contains those 3 special characters...
Please help me out in this.