From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=3.0 tests=BAYES_50,FREEMAIL_FROM, SCC_BODY_URI_ONLY,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:41d0:0:b0:39c:b702:8ec with SMTP id o16-20020ac841d0000000b0039cb70208ecmr17946332qtm.253.1669051789996; Mon, 21 Nov 2022 09:29:49 -0800 (PST) X-Received: by 2002:a05:620a:100f:b0:6fa:17e5:b62b with SMTP id z15-20020a05620a100f00b006fa17e5b62bmr17402186qkj.676.1669051789675; Mon, 21 Nov 2022 09:29:49 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 Nov 2022 09:29:49 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2001:569:5851:8a00:734d:b5e6:1d31:fef8; posting-account=5q5YygoAAACq51EZyUjcDXZ0T5AqLVPG NNTP-Posting-Host: 2001:569:5851:8a00:734d:b5e6:1d31:fef8 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <377733a1-b8ad-4497-9599-128ff8751bf0n@googlegroups.com> Subject: Re: String view of file From: Qunying Injection-Date: Mon, 21 Nov 2022 17:29:49 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:64654 List-Id: If you are using gnat with gnatcoll, then you may try its mmap facility, https://docs.adacore.com/gnatcoll-docs/mmap.html