Re: [racket-users] Strange behavior when writing to a file

2015-06-03 Thread Mark Lee
On Tuesday, June 02, 2015 04:47:33 PM Matthew Flatt wrote: > I think you wanted `(and (>=` in place of `(or (<`. That did it, thanks a lot! Mistake on my part when I wrote it, the string-length check was added afterwords so I used an or statement instead of an and. Regards, Mark -- You receive

Re: [racket-users] Strange behavior when writing to a file

2015-06-02 Thread Matthew Flatt
If you uncomment the redirects to stdout and comment out the file output, then nothing is written to the file, so that changes the content of `(file->lines soap-file)` the second time around. I think you wanted `(and (>=` in place of `(or (<`. At Tue, 02 Jun 2015 15:25:07 -0400, Mark Lee wrote: >

[racket-users] Strange behavior when writing to a file

2015-06-02 Thread Mark Lee
To all, I've been recently working on a database and I've encountered strange behavior when I use "call-with-atomic-output-file" and "with-output-to-file". Attached is a sample piece of code. The correct contents of the SOAP file should be : *First-Name : John *Last-Name : Doe *Gender : male *Pho