Реферат: Разработка оболочки экспертной системы
; Загрузка файла
(define (loading)
(Window-Set-Position! menulw 20 20)
(Window-Set-Size! menulw 1 40)
(Window-Clear menulw)
(Window-Set-Cursor! menulw 1 3)
(set! f (read-line menulw))
(Window-Delete menulw)
(with-input-from-file f
(lambda ()
(set! *symptom* (read))
(set! *it_is* (read))
(flush-input)
)))
; Запись файла
(define (saving)
(Window-Set-Position! menulw 20 20)
(Window-Set-Size! menulw 1 40)
(Window-Clear menulw)
(Window-Set-Cursor! menulw 2 3)
(set! f (read-line menulw))
(Window-Delete menulw)
(with-output-to-file f
(lambda ()
(write *symptom*)
(write *it_is*)
)))
;Меню диагностики
(define (menucons)