Ruby script to read RFID tags and write time stamps to a file