| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Functions in this module try to help to improve Festival file input/output.
with-open-file (variable filename &optional how) body-form ...
Open file named filename in mode how (for reading if not provided) and bind it to a newly created local variable. Execute body-forms in that context.
read-file filename
Read and return whole contents of the file named filename.
write-file filename string
Write string to a file named filename.
make-read-line-state
Create and return a state object required by the function
read-line.
read-line file state
Read a single line from file and return it without the final
newline character. If there is no next line in file, return
nil. state is a state as initially returned by the
make-read-line-state function.
The typical read-line usage idiom is:
(let ((state (make-read-line-state))
(f (fopen "..."))
(line t))
(while line
(set! line (read-line f state))
...))
|
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Milan Zamazal on August, 11 2009 using texi2html 1.78.