#!/bin/bash

file="$1"
shift

for arg in "${@}"; do
    printf "%s\0" "${arg}"
done > "${file}"
