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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4cbbb893fee6c841,start X-Google-Attributes: gid103376,public From: hilgend@rmi.de (Oliver Hilgendorf) Subject: text_io.open filename question Date: 1997/09/26 Message-ID: <342cbf42.564774@news.rmi.de>#1/1 X-Deja-AN: 275789872 X-Complaints-To: usenet@rmi.de X-Trace: fuchur.rmi.de 875282319 3310 (None) 195.124.9.80 Organization: RMI Net - EUnet EUregio POP Aachen Newsgroups: comp.lang.ada Date: 1997-09-26T00:00:00+00:00 List-Id: I want to open several textfiles using text_io.open. The length of each filename is only know at runtime. However if I define a string of the maximum filename-length to hold the filename, all trailing blanks are also passed to text_io.open and this results in name_error because a file with trailing blanks does not exist. So I have to pass a string that is defined with exactly the same length as the actual filename. How can I define a string object with variable length at runtime? Oliver