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-Thread: 103376,a3fe2aac201210c0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: reading a text file into a string Date: Mon, 19 Jul 2004 09:58:41 +0100 Organization: BAE SYSTEMS Message-ID: <40fb8c00$1_1@baen1673807.greenlnk.net> References: <40f6bf21@dnews.tpgi.com.au> X-Trace: news.uni-berlin.de DAgA3SgPPTEpa2TNS1YRoAF05ilQ+3MDI+XEML1E/nl5FVSIcG X-Orig-Path: baen1673807.greenlnk.net!baen1673807!not-for-mail X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Original-NNTP-Posting-Host: baen1673807.greenlnk.net Xref: g2news1.google.com comp.lang.ada:2226 Date: 2004-07-19T09:58:41+01:00 List-Id: Dale Stanbrough wrote: > generic > with procedure Process (Line : String); > Max_Line_Size : Positive := 1000; > -- The maximum number of characters on any one line > > procedure Process_File (Filename : String); > > > ----------------------------------------------------- > > it presumes a maximum line length, which is not so great, but > is otherwise a very convenient generic. But you could always override the default of 1000 with a more appropriate value if you find it necessary. Isn't there an arguement for defaulting to 250 characters/line? Can't remember what it was off the top of my head but it is ringing a bell...