Filter special characters

I have a text file that has these special characters.

^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^E 

How would I go about removing them? They come from a c program. I have to use a for loop like this or my outputs gets messed it. I can't use the %s option or my output won't be in the way I need it.

for(i = 31; i < 80; i++)
            {
                printf(" %c ", line);
            }

Hello,

Here is an example for same. But if you can provide the input for same so we can give more specific output.

awk 'gsub(/[[:cntrl:]]/,X,$0) gsub(/[[:punct:]]/,Y,$0) 1'  file_name

Thanks,
R. Singh

What input? Do you mean the output file?