comp.lang.ada
 help / color / mirror / Atom feed
* Usage of Stream Set_Index() function
@ 2022-01-14 18:30 DrPi
  2022-01-14 20:35 ` Niklas Holsti
  0 siblings, 1 reply; 3+ messages in thread
From: DrPi @ 2022-01-14 18:30 UTC (permalink / raw)



Hi,

I'm writing an application where I read a file with a complex structure.
For this, I use Ada.Streams.Stream_IO package.
To read the file, I need to position the file pointer to the correct 
location. I do this using Set_Index().

In ARM A.12.1, it is stated :
For Read and Write with a Positive_Count parameter, the value of the 
current index is set to the value of the Positive_Count parameter plus 
the number of stream elements read or written.

I don't understand the "plus the number of stream elements read or written".

Does this mean one can't go back to beginning of file once data have 
been read ?

Nicolas

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

end of thread, other threads:[~2022-01-15 10:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 18:30 Usage of Stream Set_Index() function DrPi
2022-01-14 20:35 ` Niklas Holsti
2022-01-15 10:36   ` DrPi

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