Writing a file using C

Attached is a file I am using to write read from one file and write to another.  Below is what is printed on the screen with the printf statement that is in the while loop.  Using the fputc command can I expect the information is going to the output file.  If the number 176 is printed on the screen I need 176 to go to the output file and not an ASCII equivalent.
THANKS!

176 0 0 176 32 115 192 27 186 0 0 186 32 114 202 27 176 7 100 186 7 69 240 67 16 76 2 1 2 0 247 240 67 16 76 2 1 0 1 16 247 186 91 36 240 67 16 76 2 1 34 0 247 240 67 16 76 2 1 32 66 0 247 176 93 35 240 67 16 76 2 1 34 0 247 240 67 16 76 2 1 32 66 0 247 186 93 70 240 67 16 76 2 1 64 6 0 247 240 67 16 76 2 1 90 1 247 240 67 16 76 2 1 86 64 247 240 67 16 76 2 1 87 64 247 176 94 40 240 67 16 76 8 0 17 127 247 186 94 0 240 67 16 76 8 10 17 127 247 177 94 0 240 67 16 76 8 1 17 127 247 240 67 16 76 2 1 74 0 87 247 240 67 16 76 2 1 12 64 247 240 67 16 76 2 1 13 64 247 240 67 16 76 2 1 2 0 247 240 67 16 76 2 1 0 1 16 247 176 91 28 184 0 127 184 32 0 200 0 185 0 127 185 32 0 201 0 240 67 16 76 48 42 5 20 247 240 67 16 76 48 46 5 20 247 240 67 16 76 48 51 5 40 247 240 67 16 76 48 36 5 0 247 240 67 16 76 48 51 4 73 247 184 7 55 184 91 45 185 7 76 178 7 88 179 7 65 179 10 100 179 91 40 179 93 35 179 0 0 179 32 127 195 27 180 7 65 180 10 100 180 91 40 180 93 20 181 7 55 181 0 0 181 32 127 197 49 182 7 71 182 10 70 182 91 42 182 93 0 182 0 0 182 32 127 198 0 183 7 66 183 10 20 183 91 40 183 93 10 183 0 0 183 32 127 199 25 240 67 126 1 0 27 16 28 247 240 67 16 76 2 1 0 1 17 247 240 67 16 76 2 1 12 64 247 240 67 16 76 2 1 13 64 247 240 67 16 76 2 1 12 64 247 240 67 16 76 2 1 13 64 247 240 67 16 76 2 1 2 0 247 240 67 16 76 2 1 0 1 17 247 176 91 28 240 67 16 76 2 1 32 65 0 247 240 67 16 76 2 1 44 64 247 240 67 16 76 2 1 45 64 247 240 67 16 76 2 1 44 64 247 240 67 16 76 2 1 45 64 247 240 67 16 76 2 1 34 0 247 240 67 16 76 2 1 32 65 0 247 176 93 35
midiio.c
sargent240Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Infinity08Commented:
If you want the output file to be exactly like what you get on standard output, why not use fprintf instead of fputc ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sargent240Author Commented:
let me check it out.  Thanks for the response, I'll let you know.
0
sargent240Author Commented:
That's a keeper, Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.