---
title: "Discussion on \"60 PicoLisp Functions You Should Know - 3: Input/Output\" | Hashnode"
description: "Discussion on \"60 PicoLisp Functions You Should Know - 3: Input/Output\". Hello, World!"
url: "https://hashnode.com/posts/60-picolisp-functions-you-should-know-3-inputoutput/61372d3bef28811d8bed6b40"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [60 PicoLisp Functions You Should Know - 3: Input/Output](https://picolisp-explored.com/60-picolisp-functions-you-should-know-3-inputoutput?utm_source=hashnode&utm_medium=feed)

Hello, World!

Sep 7, 2021 · 5 min read · picolisp-explored.com  
Updated Aug 27, 2022  
Read the article

-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#functions](https://hashnode.com/tag/functions)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#hello-world](https://hashnode.com/tag/hello-world)

## Written by

[Mia Temma](https://hashnode.com/@miatemma)

@miatemma · Berlin, Germany

  
[View profile](https://hashnode.com/@miatemma)

## Responses 2

Markdown supported · ⌘↵ to post

[Mateusz Jasiuk](https://hashnode.com/@mjmj)

[Aug 26, 2022](https://hashnode.com/posts/60-picolisp-functions-you-should-know-3-inputoutput/61372d3bef28811d8bed6b40/comment/6308aa744d50fd71142c6c27)

I really enjoy this introduction to picolisp. Awesome job! One small thing I found in the section regarding reading from file:

> Create a file "test.txt" and write some arbitrary content inside, such as:

But then we read the `input.txt` file.

[Mia Temma](https://hashnode.com/@miatemma)

[Aug 27, 2022](https://hashnode.com/posts/60-picolisp-functions-you-should-know-3-inputoutput/61372d3bef28811d8bed6b40/comment/6308aa744d50fd71142c6c27#reply-6309cccc4d50fd71142c930e)

Hi Mateus, thanks a lot for your comment! I corrected it!

[Olaf](https://hashnode.com/@olaf)

[Sep 9, 2021](https://hashnode.com/posts/60-picolisp-functions-you-should-know-3-inputoutput/61372d3bef28811d8bed6b40/comment/6139cd402c9ec22314f4b31a)

Thanks for your nice intro in picolisp coding!

I would like to point at the fact, that

```
(print (1 "abc" (d e (f)) 999 ghi))
```

does only work without a single quote (') in front of the list because of a picolisp distinctive feature: a list starting with a number will not evaluate as a function call - or exactly spoken: "if the CAR of the list is a number, the whole list is returned as it is"

To print lists not starting with a number, one has to add the single quote in front of the list to escape evaluation of the list as a function call.

```
 (print '("abc" (d e (f)) 999 ghi))
```

(otherwise picolisp will not print the list and respond: _"abc" -- undefined_ )

In my early days with picolisp I got confused by different code examples with lists being quoted sometimes and being not quoted other times - it took a while until I really checked that simple rule above :-)

[Mia Temma](https://hashnode.com/@miatemma)

[Sep 9, 2021](https://hashnode.com/posts/60-picolisp-functions-you-should-know-3-inputoutput/61372d3bef28811d8bed6b40/comment/6139cd402c9ec22314f4b31a#reply-6139fe8757537d179c914841)

Hi Olaf, thank you! You are right, that's a confusing point. I will add it to tomorrow's post about list functions as well.
