Skip to content

Instantly share code, notes, and snippets.

View sparre's full-sized avatar

Jacob Sparre Andersen sparre

View GitHub Profile
@sparre
sparre / tail.adb
Last active January 19, 2017 19:03 — forked from charlie5/gist:a3855c1ffdcd6cafce1ea87cb671b345
Reading records with Ada.Direct_IO
with Ada.Direct_IO;
with Ada.Text_IO; -- For demonstration purposes.
procedure Tail is
type Your_Record is String (1 .. 8);
package Record_IO is new Ada.Direct_IO (Element_Type => Your_Record);
Source : Record_IO.File_Type;
Value : Your_Record;
begin