in reply to how can i send data to /dev/null ?

I'm planning to read data from a handle yes, but the
incoming data is arbitrary in both content and length.

After the first number of bytes read, should the program
decide it no longer wishes to continue to read, i'd like the
remaining data to be discarded.

Thus I could just close the file i guess, amen.

thanks

abachus.