[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I/O, modules

From: thorsopia
Subject: I/O, modules
Date: Tue, 13 Nov 2012 00:57:11 -0500 (EST)
User-agent: SquirrelMail/1.4.13


Could you show me some trivial programs related to I/O (e.g. read from
file, convert to uppercase, write to another file)?

This page [0] doesn't list a function that can be used to read the whole
file at once. Is there a "read-string" function? What about "read-port"?

Should I import some module to get the above functions? Which one?

BTW, I have a problem with modules. How to check what can be imported?

For example:

I created two files in the same dir:


(define-module (test-scm)
  #:export (test-func))

(define (test-func x)
  (+ x 1))


(define-module (import-test)
  #:use-module (test-scm))

(display (test-func 2))

Why does "guile import-test.scm" raise "ERROR: no code for module


reply via email to

[Prev in Thread] Current Thread [Next in Thread]