dg1v+@andrew.cmu.edu (David Greene) (02/13/89)
I am trying to read various types of ascii data files into a standard common LISP program (Ibuki Common Lisp). There are a number of ways to create streams and such, but how can I test for an End Of File so that my read won't return an error? I have gone through Steele, but apparently the appropriate function has eluded me. Thanks for any help. -David dg1v@andrew.cmu.edu dpg@isl1.ri.cmu.edu
binger@p.cs.uiuc.edu (02/14/89)
/* Written 3:16 pm Feb 12, 1989 by dg1v+@andrew.cmu.edu in p.cs.uiuc.edu:comp.lang.lisp */ /* ---------- "File I/O" ---------- */ I am trying to read various types of ascii data files into a standard common LISP program (Ibuki Common Lisp). There are a number of ways to create streams and such, but how can I test for an End Of File so that my read won't return an error? I have gone through Steele, but apparently the appropriate function has eluded me. Thanks for any help. -David dg1v@andrew.cmu.edu dpg@isl1.ri.cmu.edu /* End of text from p.cs.uiuc.edu:comp.lang.lisp */ Look at the optional arguments for READ. (page 375 of Steele). You can specify a value for READ to return on eof. YADavid