in reply to Creating data delimited by ASCII code 1 using perl

Any suggestion how to create a file where the values are separated by ASCII code 1 (binary1)

In Perl, that can be represented in a double-quoted string as "\x01" or "\001" (among others). As for the rest of your question, please see How do I post a question effectively?.