getline & non-ASCII characters, is there a way out?

vlpavlov's Avatar, Join Date: Feb 2008
Newbie Member
hello 2 all

i wander how to get characters from plain text file that are not ASCII, eg ć š đ č, also german letters .... .. . and put them in array of 200 characters

any ideas


technosavvy's Avatar
what u can do is open the file in binary mode and read it using fread...
hence u will be able to retrieve everything...

the problem u have is because of characters which are non german characters that u r talking about comes in UNICODE character if u have a corresponding function which can read UNICODE characters then ur job is done..

nd even in the case when u use fread to read the complete file..u won't be really use the character until u have a char which is more than one byte long...!