generalize writedlm to iterable arguments and arbitrary delimeters