after I rooted my mobile and execute su I wrote this command
os.writeBytes("echo \"Do I have root?\" >/system/sd/temporary.txt\n");
it's working but I didn't find temprorary.txt I search in sdcard and external card. the hole path is not exist. is there any other memory to search in? or any way to find this path? or there is a problem in the command?