Category : Pascal Source Code
Archive   : V_PASCAL.ZIP
Filename : LISTER

 
Output of file : LISTER contained in archive : V_PASCAL.ZIP
PROGRAM LISTER; {a simple program to add line numbers to a listing}
{since it uses INPUT and OUTPUT for the files, you should run it like:

{ LISTER OUTFILE
{ or
{ LISTER PRN
{ to write to the printer.
{you could try:
{ LISTER
VAR
STR : STRING; {for the line coming in; 80 char max!}
LINENUM : INTEGER;

BEGIN
LINENUM := 0;
WHILE NOT EOF DO
BEGIN
LINENUM := LINENUM + 1;
READLN(STR);
WRITELN(LINENUM:4, ':', STR);
END;
END.


  3 Responses to “Category : Pascal Source Code
Archive   : V_PASCAL.ZIP
Filename : LISTER

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/