Send samples to an output file