(* Collection of code snippets by Arne Vajhøj *)
(* (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) *)
[inherit('sys$library:pascal$lib_routines')]
program seq(input,output);

var
   cmd : varying [80] of char;
   line : varying [80] of char;
   f : text;

begin
   lib$get_foreign(cmd.body,,cmd.length);
   writeln('Pascal - ' + cmd);
   open(f, cmd, old);
   reset(f);
   while not(eof(f)) do begin
      readln(f, line);
      writeln('|' + line + '|', line.length);
   end;
   close(f);
end.
