The original Ada standard, ANSI/MIL-STDA (a.k.a. ISO ), was revised and superseded by Ada There are two. Ada83 LRM Legal Information. Usage Statement for the HTML Ada83 LRM. The Ada83 LRM content is covered by the copyright and usage statement given. USE OF MACHINE-READABLE Ada LANGUAGE REFERENCE MANUAL. The Ada Joint Program Office does not guarantee the accuracy of this file.
|Published (Last):||7 July 2005|
|PDF File Size:||20.71 Mb|
|ePub File Size:||7.46 Mb|
|Price:||Free* [*Free Regsitration Required]|
Ada (programming language) – Wikipedia
Appendix E Compatibility and Porting Guide. In that way, you don’t need to know the length of the file in advance. As you aren’t doing anything to advance through the file, it will just increment forever as you observed.
Perhaps you wanted to get a character each time round the loop? In which case you may want to call the “Get” function Another point to note: Get in the loop would not accurately count the characters in the file, but exclude line termination characters.
Does not manipulate the file type anywhere. Therefore the EOF will not be reached.
Ada (programming language)
I have written the following code in Ada83 to find the size of a file: Size F ; DIO.
Close F ; Addendum: I am supposed to write a parser for simple configuration files. Definitely the best way. Lmr would have been my answer, except I didn’t know if that applied to Ada This does not work for Ada83 while i need something in Ada83 alone.
Do you have a missing With or Use clause? The package is in the Ada 83 LRM: I’ve added a with clause and some potentially useful adaa83. Are you learning, maintaining or porting? Reading characters is likely to skip line and page breaks and mis-process the end of the file. Reading integers will only work if 1 the file only contains integers and 2 the “size of the file” is defined to mean the number of integers in it.
I would urge you to update lrmm answer to incorporate JacobSparreAndersen’s caveats.
Ada 83 LRM, Legal Information
We still don’t know the question’s genesis, and your answer regarding the loop may provide orm critical insight. To answer the question as posed, Your loop: If you add a call to: Not actually tested this at all! NWS 2, 1 12 Sign up or log in Sign up using Google.