> From: "Per Ostberg" <[log in to unmask]>
> I'm having problems reading from a message file. My program is
> supposed to answer different types of requests (from a socket). One
> of the requests involves reading a message-file. The problem is that
> the messagefile may be empty and the writer may not be running, but I
> would still like to return from FREAD (so I can reply that there are
> no messages, and go on with other requests).
> What aoptions should I use in FOPEN for my FREAD to always return?
> Should I use FCONTROL( ,45,0)? IOWAIT?
If you haven't looked at it yet, the Interprocess Communications
Programmer's Guide can be quite helpful:
http://docs.hp.com/mpeix/onlinedocs/32650-90019/32650-90019.html
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *