I\'m doing a Java program that calls some C functions via the JNI. I have a situation where I gather a bunch of computer energy readings in C and want to write them to a fil