Write scanned barcode to file.

Signed-off-by: Mariusz Fik <fisiu@fidano.pl>