comp.lang.ada
 help / color / mirror / Atom feed
From: hilgend@rmi.de (Oliver Hilgendorf)
Subject: text_io.open filename question
Date: 1997/09/26
Date: 1997-09-26T00:00:00+00:00	[thread overview]
Message-ID: <342cbf42.564774@news.rmi.de> (raw)


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




             reply	other threads:[~1997-09-26  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-26  0:00 Oliver Hilgendorf [this message]
1997-09-27  0:00 ` text_io.open filename question Tom Moran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox