comp.lang.ada
 help / color / mirror / Atom feed
* How do I allocate strings of variable length at runtime?
@ 1997-09-26  0:00 Oliver Hilgendorf
  1997-09-26  0:00 ` Matthew Heaney
  1997-09-26  0:00 ` William A Whitaker
  0 siblings, 2 replies; 5+ messages in thread
From: Oliver Hilgendorf @ 1997-09-26  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-10-07  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-26  0:00 How do I allocate strings of variable length at runtime? Oliver Hilgendorf
1997-09-26  0:00 ` Matthew Heaney
1997-09-29  0:00   ` Marc Bejerano
1997-10-07  0:00     ` Robert I. Eachus
1997-09-26  0:00 ` William A Whitaker

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