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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,48376c7ba742841e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-27 18:07:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!news.uunet.ca!nf3.bellglobal.com!wn1feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc54.POSTED!not-for-mail From: Wannabe h4x0r Subject: Ada Characters? Newsgroups: comp.lang.ada User-Agent: Pan/0.11.1 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL Message-ID: NNTP-Posting-Host: 12.245.48.122 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1014862064 12.245.48.122 (Thu, 28 Feb 2002 02:07:44 GMT) NNTP-Posting-Date: Thu, 28 Feb 2002 02:07:44 GMT Organization: AT&T Broadband Date: Thu, 28 Feb 2002 02:07:44 GMT Xref: archiver1.google.com comp.lang.ada:20542 Date: 2002-02-28T02:07:44+00:00 List-Id: I'm trying to figure out how to get my Ada program to single out ASCII control codes without hosing the output of the rest of the text file. Basically, I'm doing it like this... with Ada.Characters; use Ada.Characters.Handling; TEXT : string(1..200); chk_char: character; -- Check to see if this is a control character. chk_result : boolean; and the code goes like this ... for l in TEXT'range loop chk_char := TEXT(l); chk_result := Is_control(chk_char); if chk_result is True then if then NEW_LINE; else NULL; end if; else Put(chk_char); --Put each character individually end if; end loop; Anyways, that's the general gist of it. Now, I got a short program that opens a text file, and reads from it, but all it does is spew out control codes. Really odd. I really dont have a handle on this as I can tell. Tips? Chris