Read a line of data from a serial connection, write it to a file