Want something reeeeeaaaaaally simple ?
Create a file only containing 1 byte (you may need a hex-editor to manipulate that byte), and then type:
copy myfile to par:
*clack* *clack* :-D
Or if in C (untested but should work, and if with every compiler):
char c = 0xf3;
FILE *file;
file = fopen("PAR:","w");
putc(file,c);
fclose(file);
Done from memory, typos or under international copyright