(read) takes in a string from stdin, parses it as an s-expression, and returns that expression. How do I do the exact same thing, except taking input from a file?
相关问题
- What is the best way to do a search in a large fil
- Spring Integration - Inbound file endpoint. How to
- In what practical case bool(std::ifstream) != std:
- Generating powerset in one function, no explicit r
- php--glob for searching directories and .jpg only
相关文章
- How to replace file-access references for a module
- What is the correct way to declare and use a FILE
- Making new files automatically executable?
- Why is file_get_contents faster than memcache_get?
- Transactionally writing files in Node.js
- How to serialize data into indented json [duplicat
- Creating a custom file like object python suggesti
- What is “3D syntax”?
Any of these:
The first will open the file and apply
read
on the open port to read a value and finally close it. The second is similar, except that it applies the function on no arguments in a dynamic context where the current input is read from the file. There are a bunch of other ways to do this, but you'll need to ask a more specific question...(BTW, in the current repository version, which will be released as 4.2.3 soon, there is a new
file->list
function that willread
all sexpressions from the file and return a list holding all of them.)