Read text files

Read text files
0.0 0



I have some source that I want to port to cocos2dx. In this program I read a text file that only contains float numbers using FILE and fscanf. But in cocos the code doensn’t work

Could somebody help me?



I guess your 2nd parameter of fopen maybe incorrect. With “b” or without “b”, that’s a problem.