write.c/write.h contain a general function that writes to an array of floats to a file.