<div dir="ltr">Just what I was looking for.<div><br></div><div>Also I think I'll need (read-line p #f) occasionally!</div><div><br></div><div>Thanks,</div><div>Kashyap</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 20, 2018 at 5:41 AM, Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">And to read a file as a list of lines:<br>
<br>
(call-with-input-file "read.scm" (lambda (port) (read-all port read-line)))<br>
<span class="HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
> On Mar 20, 2018, at 8:38 AM, Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>> wrote:<br>
><br>
> For a text file you can do:<br>
><br>
> (call-with-input-file "file" (lambda (port) (read-line port #f))<br>
><br>
> Marc<br>
><br>
><br>
><br>
>> On Mar 19, 2018, at 10:17 PM, C K Kashyap <<a href="mailto:ckkashyap@gmail.com">ckkashyap@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>> Could someone please tell me whats the gambit way to "slurp" a file?<br>
>> Regards,<br>
>> Kashyap<br>
>> ______________________________<wbr>_________________<br>
>> Gambit-list mailing list<br>
>> <a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
>> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://webmail.iro.umontreal.<wbr>ca/mailman/listinfo/gambit-<wbr>list</a><br>
><br>
> ______________________________<wbr>_________________<br>
> Gambit-list mailing list<br>
> <a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
> <a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" rel="noreferrer" target="_blank">https://webmail.iro.umontreal.<wbr>ca/mailman/listinfo/gambit-<wbr>list</a><br>
<br>
</div></div></blockquote></div><br></div>