I think its about time you learn to use code tags, even though you have already been told to use them before and ignored what was said. Try again with code tags..
William Hemsworth
Posting Virtuoso
1,591 posts since Mar 2008
Reputation Points: 1,429
Solved Threads: 129
Hmm, I thought I was in the C++ forum.
Oh, I am!
This C code works for me, I see the numbers. How are you viewing the resulting data files?
Keep in mind that putw() is writing an int to the file, not the ASCII values representing the numbers.
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
Read my last line again. Then examine your output file(s) in a hex editor.
(No programmer should leave home without one.)
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
Shaky Rox, you've posted into a three-year-old thread, in general if you have a question about an inactive thread, copy any relevant info into a new thread.
Meanwhile, you can insert your own "printf()" statements if you wish to echo back what the user typed.
raptr_dflo
Practically a Master Poster
602 posts since Aug 2010
Reputation Points: 76
Solved Threads: 82