void keyPressed() { // Press a key to save the data
output.flush(); // Write the remaining data
output.close(); // Finish the file
exit(); // Stop the program
}
void mouseClicked() {
if(mouseX >500 & mouseX < 550){
if(mouseY >500 & mouseY < 550){
output.flush(); // Write the remaining data
output.close(); // Finish the file
exit(); // Stop the program
}
}
}