I need to write a program that searches a text file and makes a list of names, that this file is contains. Every name is placed after "[PRG]" phrase. So I want to search for "PRG" and than read next word. I have a problem though, because encoding of this file is UCS-2 LE. I found out that instead of "string" I need to use "wstring" variables. But I see that I'm reading strange values form my file and I cannot compare them with "PRG" phrase.I need to write a program that searches a text