title: How to specify current working path in jni
body: <p>I have Java Android application (TestApp).  From my TestApp I call function from jni code:</p>
  
  <pre><code>JNIEXPORT jint JNICALL Java_com_app_test_testApp_CreateFile( JNIEnv* env, jobject thiz, jobject jclass ) {
      pFile = fopen ("/NDK_Log.txt", "a+");
      // Get's current date time and print it in the log file.
      dateTime    = time(NULL);
      currentTime = ctime( &amp;dateTime );
      fprintf( pFile, "\n\n--------------------------------------------------------------------------\n" );
      fprintf( pFile, "\t\t\t\t\t\t %s", currentTime );
      fprintf( pFile, "--------------------------------------------------------------------------\n\n" );
      fprintf( pFile, "&gt;&gt;&gt; Enter Initialize &lt;&lt;&lt;\n" );
      #endif
  
      return 0;
  }
  </code></pre>
  
  <p>I want to create file in "data/data/com.app.test.testApp/" folder but I can't, what I am doing wrong, and how I can specify current working directory or give current path of application ?</p>