I have a very simple web servlet application that tries to write data to a file as a sort of miniature database.<div><br></div><div>Here is the code that writes the file.</div><div><br></div><div><div>(define (save-costs costs)</div>
<div> (with-output-to-file</div><div> file-name</div><div> (lambda ()</div><div> (write (serialize costs)))</div><div> #:exists 'truncate</div><div> #:mode 'text))</div><div><br></div><div>
<br></div><div>In normal scheme this code works fine and creates the file "costs.dat" and everything is merry.</div><div><br></div><div>Inside the web server it does not create the file anywhere or update it thought the code executes without error.</div>
<div><br></div><div>The web server is able to read the file on startup, just not write it.</div><div><br></div><div>What am I doing wrong here?</div><div><br></div><div><br></div><div>Thanks,</div><div> Curtis</div></div>