Hello guys,i have this question . I have created a code to manipulate some list saved in a global variable . But now,i want that global to get the value of some data "deseases.dat" and then use this on the others functions that i have created.
Someone can give me a tipe of how this works?
And sorry for bad english. Thank you !
(defun get-data()
(with-open-file (stream "deseases.dat" )
(setf (glob (read stream)))))
This way i want to use my global variable "glob" that get the valor of the deseases.dat file and now i can manypulate that data using the glob,tem make another with-file-open to save this on deseases.dat . But,i kind of not understand how with-open-file works and why this function inst working .Someone can give me a tipe of how this works?
And sorry for bad english. Thank you !