Writes Double data to the targeted file
Name of the file that is being logged to
data that is being logged