How about
(defun get-file (filename)
(with-open-file (stream filename)
(loop for line = (read-line stream nil)
while line
collect line)))
More Related Contents:
- How to generate all the permutations of elements in a list one at a time in Lisp?
- How to recursively reverse a list using only basic operations?
- Cons element to list vs cons list to element in Scheme
- Histogram in Haskell [closed]
- Why exactly is eval evil?
- Convert a Scala list to a tuple?
- Pythonic way to return list of every nth item in a larger list
- data.frame rows to a list
- Iterate over elements of List and Map using JSTL tag
- How to create an Object that outputs a List (Not A Table)
- Writing a list to a file with Python, with newlines
- How to convert a matrix to a list of column-vectors in R?
- How iterate over List and render each item in JSF Facelets
- Lisp, instructions not working in defun [duplicate]
- Scala list concatenation, ::: vs ++
- How to merge YAML arrays?
- How to cast an object to a list of generic type in F#
- Splitting a list of integers into a list of positive integers and a list of negative integers
- Prolog: First duplicate value
- LET versus LET* in Common Lisp
- Is there a function to flatten a nested list of elements?
- rbind dataframes in a list of lists
- How to remove nested parentheses in LISP
- Python: find a list within members of another list(in order)
- Linked list partition function and reversed results
- Dynamic and Lexical variables in Common Lisp
- How does one enable selections in SwiftUI’s List
- Splitting a list of items into two lists of odd and even indexed items
- Lisp – Print out () instead of nil for empty list
- What are the differences between vector and list data types in R?