data logger can now write to files as well.