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,db1e3158636a30f2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-20 12:47:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!3bae8248!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Fill string with multiple lines from standard_input References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.112.202.236 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1029872774 ST000 67.112.202.236 (Tue, 20 Aug 2002 15:46:14 EDT) NNTP-Posting-Date: Tue, 20 Aug 2002 15:46:14 EDT Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: OH\IRYOGTRUSP_@YMZJ\_Q\@TJ_ZTB\MV@BL\QMIWIWTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN Date: Tue, 20 Aug 2002 19:46:14 GMT Xref: archiver1.google.com comp.lang.ada:28265 Date: 2002-08-20T19:46:14+00:00 List-Id: >If I use the streams from Ada.Text_IO.Text_Streams I will lose the s. > >I can't use Ada.Streams.Stream_IO either because I can't read from the >standard input with that package. You can only read from files that are I suspect your problem is that Standard Input is not opened by the _OS_ in binary mode, but rather in text mode. You simply can't use Standard Input for what you want - you'll have to open a file yourself.