home *** CD-ROM | disk | FTP | other *** search
Modula Implementation | 1991-02-25 | 973 b | 35 lines |
- (* ------------------------------------------------------ *)
- (* INFO.MOD *)
- (* ------------------------------------------------------ *)
- IMPLEMENTATION MODULE Info;
-
- FROM FileSystem IMPORT Lookup,Close,ReadChar,File,Response;
- FROM InOut IMPORT Write, Read;
- FROM ASCII IMPORT EOF;
- FROM Windows IMPORT OpenWindow, CloseWindow, Window;
-
-
- PROCEDURE Information(string : ARRAY OF CHAR);
- VAR
- txt : Window;
- Doc : File;
- Zeic : CHAR;
- BEGIN
- OpenWindow(txt, 4, 0, 24, 79, TRUE,('[ Information ]'));
- Lookup(Doc, string, FALSE);
- IF Doc.res = done THEN
- WHILE NOT(Doc.eof) DO
- ReadChar(Doc, Zeic);
- Write(Zeic);
- END;
- END;
- Close(Doc);
- Read(Zeic);
- CloseWindow(txt);
- END Information;
-
- END Info.
- (* ------------------------------------------------------ *)
- (* Ende von INFO.MOD *)
-
-