Arduino log file directly to file
Any serial terminal emulator application can connect to the Arduino. Select one that has log-to-file capability and open its log file after you've connected it to your Arduino's /dev/tty... device. 

Start the Arduino and let it collect &amp; send the data to your terminal program. Close the terminal app's log file (easy step to forget - ask me how I know :) and there's your data.