--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/9f6d0da8-3a08-4467-b950-2af84e666374%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Arsiboolean value; char data[] = new char[1]; FileReader ff = new FileReader(path); ff.read(data); value = !(data[0] == '0'); ff.close(); Write:boolean value = true; FileWriter writer = new FileWriter(path); if (value) { writer.write("1"); } else { writer.write("0"); } writer.close(); ********************************************* String path ="/sys/class/gpio/gpio48/value";