[comp.lang.pascal] MS-Pascal on PC using the COM ports

sam4628@summa.tamu.edu (Steven 'the Pilot') (04/02/91)

Here's my problem: I'm trying to read/write through the COM port. As
long as something is coming down the line, everything is OK, but when
the line is empty, the last READ (or GET) freezes.  Apparently EOF
doesn't work for this type of application (it's always FALSE). Could
somebody tell me the correct way to open and access the COM port (so
that I can tell when there's no more data incoming)? Thanks.