<div dir="ltr"><div><div><div><div>Or you can use `display-to-file' (here too look at the keyword arguments):<br><a href="http://docs.racket-lang.org/reference/Filesystem.html?q=display-lines-to-file#%28def._%28%28lib._racket%2Ffile..rkt%29._display-to-file%29%29">http://docs.racket-lang.org/reference/Filesystem.html?q=display-lines-to-file#%28def._%28%28lib._racket%2Ffile..rkt%29._display-to-file%29%29</a><br>
</div><div><br>If you have a list of strings instead of a single string, you can also use `display-lines-to-file':<br><a href="http://docs.racket-lang.org/reference/Filesystem.html?q=display-lines-to-file#%28def._%28%28lib._racket%2Ffile..rkt%29._display-lines-to-file%29%29">http://docs.racket-lang.org/reference/Filesystem.html?q=display-lines-to-file#%28def._%28%28lib._racket%2Ffile..rkt%29._display-lines-to-file%29%29</a><br>
<br></div>It is the 'inverse' function of `file->lines'.<br><br></div><div>Laurent<br></div></div></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 22, 2013 at 1:51 PM, Jos Koot <span dir="ltr"><<a href="mailto:jos.koot@gmail.com" target="_blank">jos.koot@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Courier New">You already have the file, isn't
it?</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Courier New">If you want to convert the string to a new file, open
it with the appropriate <span>#:exists keyword argument </span>and
write.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Courier New">If you want an input string, use
open-input-string.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Courier New">Jos</font></span></div><br>
<blockquote style="BORDER-LEFT:#0000ff 2px solid;PADDING-LEFT:5px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px" dir="ltr">
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma"><b>From:</b> <a href="mailto:users-bounces@racket-lang.org" target="_blank">users-bounces@racket-lang.org</a>
[mailto:<a href="mailto:users-bounces@racket-lang.org" target="_blank">users-bounces@racket-lang.org</a>] <b>On Behalf Of </b>deepak
verma<br><b>Sent:</b> viernes, 19 de abril de 2013 16:47<br><b>To:</b>
users<br><b>Subject:</b> [racket] string to file<br></font><br></div><div class="im">
<div></div>
<div dir="ltr">if we convert a file into a string using file->string
<div>how do we get back the file?</div>
<div><br></div></div></div></blockquote></div>
<br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>