problem with char* block[5000] and binary reading

I

ishmael4

Uzytkownik "Karl Heinz Buchegger said:
What's sth?
Array of bytes is fine. If there were a data type 'byte' in C. There is
none. But 'unsigned char' serves the same purpose.


What I am aiming at is:

Don't let yourself fool you with your tests so far. That your debugger
doesn't show you what you expect is in this case a problem of not using
your debugger correctly. The data in the array should be fine. Just send
it through the socket, write it to a file and you should have an exact
copy
if the input file. If you want to verify that you read the file correctly,
you can write the read data to a file at the server side und use a hex
dump tool
or a file difference tool to verify that it is identical to the source.
That
would be better anyway, because in doing a manual check you *will* make
errors.
(I already have spent hours staring at hex dumps and comparing them.
That's no joy).

okay, thanks. this sounds reasonable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top