Skip to content

Instantly share code, notes, and snippets.

@gidili
Last active December 19, 2015 14:09
Show Gist options
  • Save gidili/5966883 to your computer and use it in GitHub Desktop.
Save gidili/5966883 to your computer and use it in GitHub Desktop.
logging a file
Writer test_log = null;
// write txt files
test_log = new FileWriter("test_log.txt");
for(int i=0; i<checkpoint_values.neighborMap.size(); i=i+2 )
{
test_log.write(checkpoint_values.neighborMap.get(i) + "\t" +
checkpoint_values.neighborMap.get(i + 1) + "\r\n");
}
test_log.flush();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment