Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!orstcs!jacobs.cs.orst.edu!borcelf From: borcelf@jacobs.cs.orst.edu (Fernando Borcel) Newsgroups: comp.sys.mac.programmer Subject: Modem readln from LSP Message-ID: <9257@orstcs.CS.ORST.EDU> Date: 7 Mar 89 06:04:58 GMT Sender: usenet@orstcs.CS.ORST.EDU Reply-To: borcelf@jacobs.cs.orst.edu (Fernando Borcel) Distribution: usa Organization: Oregon State University - CS - Corvallis Oregon Lines: 21 Hi. I'm writing a trivial program on lightspeed pascal that reads/writes to the modem using the standard readln and writeln calls. I'm having no problems sending stuff to the modem, but when I try to read what comes from the modem, I keep getting garbage. All I'm doing is open(modem, 'modem:'); ... writeln(modem, 'atdt555-1212'); readln(modem, foo); <- here I'd like to get the echo from the modem readln(modem, foobar); <- here I'd like to get CONNECT, For some reason, this ain't working. so, What am I doing wrong? Reply via e-mail, please -Fernando Borcel "Tact is the ability to tell a man he has an open mind when he has a hole in his head." Internet: borcelf@jacobs.cs.ORST.EDU UUCP:{tektronix,hp-pcd}!orstcs!jacobs.cs.orst.edu!borcelf