Open text file


#1

I cannot find a way to open text files in Windows Phone 8 application with Cocos2dx.
ifstream textFile; jsonFile.open("Text.txt");
It is not a problem of path, as if I open a “PNG” file in the same location, it will get correctly opened.


#2

Make sure the file property is set as content -> yes


#3

Thanks. In addition to setting the content to True, it was necessary to set the “Item type” to “Text”