2017-05-07から1日間の記事一覧

Gauche - ファイル読み込みのサンプル

gaucheでファイルを読み込むやり方のメモ。 一行ずつ読み込んで処理する (call-with-input-file "/Users/kanno/tmp/codes/a.scm" (lambda (in) (port-for-each (lambda (line) ; 1行ずつ行う何かしらの処理 (print line)) (cut read-line in)))) 一度に読み…