Append to file at every keypress