I'm trying to use fopen() in a .cpp file as
fp = fopen("/sdcard/inputdump.txt", "wb");
to dump some data into it and later analyse the contents of the file.
The problem is fp is always NULL irrespective of the path mentioned in the fopen(). So is there any other way we can use instead of dumping it into a file?