#include #include /* Program to change a stereo 16 bit digital audio into text files that can be read into data analysis programs. */ main(int argc, char *argv[]) { int binfile; FILE *textfile; short temp; if (argc != 3) { fprintf(stderr,"usage: rawtoascii \n"); } binfile = open(argv[1],O_RDONLY); textfile = fopen(argv[2],"w"); while (read(binfile,&temp,2)) fprintf(textfile,"%d\n",temp); }