[Gimp-user] reading from txt file
- From: charlysangel <forums gimpusers com>
- To: gimp-user-list gnome org
- Cc: notifications gimpusers com
- Subject: [Gimp-user] reading from txt file
- Date: Mon, 08 Jul 2019 10:32:54 +0200
Hi !
I want to create a multi-layer file by reading from a txt file x/y position and
image name.
I've tried to read from file with code below
(let* ((fd (fopen filename)))
(let* (
(c (fread 1 fd))
(res "")
)
(while (and c (not (equal? c " ")))
(set! res (string-append res c))
(set! c (fread 1 fd)))
(if (equal? res "")
()
(cons (string->number res) ())
)
)
(gimp-message (string-append "PosX: " (number->string res)))
)
I do not understand why it returns :"Error: eval: unbound variable: res "
Could you help, please ?
--
charlysangel (via www.gimpusers.com/forums)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]