From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c64c5909c07a2300,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-05 04:01:03 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Michael Bode Newsgroups: comp.lang.ada Subject: Ada way to read/write to character file Date: 05 Jan 2002 13:01:20 +0100 Organization: Organized? Me? Sender: mb@jupiter.solar.system Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.t-online.com 1010231955 03 22271 X+ADTWDVSCAy1Q 020105 11:59:15 X-Complaints-To: abuse@t-online.com X-Sender: 320025674319-0001@t-dialin.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:18577 Date: 2002-01-05T13:01:20+01:00 List-Id: Hi, I'm wondering if there is an Ada way (i.e. standard package) to read and write to a character mode (sequential) file like the COM?: resp. /dev/ttyS? interface. Ada.Text_IO has no read/write file mode and with GNAT I wasn't able to connect two File_Type variables to the same physical file at the same time. I want to communicate with a device hanging on the RS232 port. I have to write to the device and read the answers. I could of course do it like open, write, close, open read, close, open,... But I think this is not very elegant. I just finished doing it with the Win32 resp. POSIX API functions, but I'm still wondering if it could be done with some standard Ada package.