When writing to a message file (variable length records, one reader) that has reached eof, the fwrite waits. Is there a way to make the fwrite fail insted of waiting? Thank you.