Category : Miscellaneous Language Source Code
Archive   : MTD.ZIP
Filename : BADELSE.PAS

 
Output of file : BADELSE.PAS contained in archive : MTD.ZIP
program badElse;
uses crt;
var
ch : char;
fileSaved : Boolean;

function answerYes( message : string ) : Boolean;
begin
write( message );
ch := readKey;
writeln( ch );
answerYes := ( ch = 'Y' ) or ( ch = 'y' )
end;

begin
fileSaved := FALSE;
if not fileSaved
then
if answerYes( 'Save file? ' )
then writeln( 'Saving file' )
else
writeln( 'Ending program: file is saved' )
end.


  3 Responses to “Category : Miscellaneous Language Source Code
Archive   : MTD.ZIP
Filename : BADELSE.PAS

  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/