comp.lang.ada
 help / color / mirror / Atom feed
* integer input from text file
@ 2003-03-27 13:35 dumur
  2003-03-27 18:41 ` Randy Brukardt
  2003-03-27 20:19 ` Jeffrey Carter
  0 siblings, 2 replies; 4+ messages in thread
From: dumur @ 2003-03-27 13:35 UTC (permalink / raw)


My problem is that I got to read a time string from a text file. It is
in the form 12:34:45 Hour:Minute:Second. I want to get each part one
by one with

Ada.Integer_Text_IO.Get(File=>input_file, Item=> Hour);
Skip; -- skips the ":" character 
Ada.Integer_Text_IO.Get(File=>input_file, Item=> Minute);
Skip;
Ada.Integer_Text_IO.Get(File=>input_file, Item=> Second);

But the colons(:) troubles me here. If I use "," or "." instead of
colons it works but there will be colons in the input. What is the
problem? Is there any special meaning of colons(:) in Ada? Thanks.



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

end of thread, other threads:[~2003-03-28  6:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-27 13:35 integer input from text file dumur
2003-03-27 18:41 ` Randy Brukardt
2003-03-27 20:19 ` Jeffrey Carter
2003-03-28  6:11   ` dumur

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