How to read a .txt file in cocos 2d-x.

Hi,
I want to read a .txt file and need to some operation as find and getLines on it. So, It can be done directly or may be need to generate .plist file.
If it can possibly directly than how we will perform it. Plz give me any suggestion. thanks in advance.

On iOS, you can use read/write functions to read the .txt file. On android, because the resources are packed into apk, so you should read it by zip lib. CCFileUtils::getFileData() has done for it.