阅读背景:

C ++使用UCS-2 LE编码在文件中搜索短语

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: