- FileWriter fw = new FileWriter(file);
- PrintWriter pw = new PrintWriter(fw);
- pw.printf(" Time, Press, Height, Speed, Accel\n");
- for (MicroDataPoint point : data.points()) {
- pw.printf("%6.3f,%6.0f,%7.1f,%7.2f,%7.2f\n",
- point.time, point.pressure, point.height, point.speed, point.accel);
- }
- fw.close();