I am trying to use the following c code to print out an array that I have passed in. It should output the text in hexadecimal format one on each line. When I first wrote it, I had no problems with it working I opened the output file and my array was there. I changed the fileOutName parameter and now I can't get it to print out anything. Any help would be appreciated. Thanks
Code:printoutput(int output[],char * fileOutName){ int i=0; FILE * pOutfile; pOutfile = fopen( fileOutName, "w" ); while(output[i]!=0){ fprintf( pOutfile, "0x%0.4X\n", output[i]); i++; }