![Teguar TP-RC55-08 Quick Installaion Manual Download Page 15](http://html1.mh-extra.com/html/teguar/tp-rc55-08/tp-rc55-08_quick-installaion-manual_1075462015.webp)
Installation Guide TP-RC55-08
www.teguar.com
Page 15
fos.close();
// to know the path of Internal storage
// for example:/data/data/com.example.hellojni/files
System.out.println("internal dir:" + getFilesDir());
// delete the file in internal storage
deleteFile("GreenOff.txt");
}
else
{ // turn off
// using Internal Storage
String FILENAME = "GreenOff.txt";
String filewords = "GreenOff";
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(filewords.getBytes());
fos.close();
// to know the path of Internal storage
// for example:/data/data/com.example.hellojni/files
System.out.println("internal dir:" + getFilesDir());
// delete the file in internal storage
deleteFile("GreenOn.txt");
}
}
else
{ // red light
if (OnOff == 1)
{ // turn on
// write file to internal storage
String FILENAME = "RedOn.txt";
String filewords = "RedOn";
FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(filewords.getBytes());
fos.close();
// to know the path of Internal storage
// for example:/data/data/com.example.hellojni/files
System.out.println("internal dir:" + getFilesDir());
// delete the file in internal storage
deleteFile("RedOff.txt");
}