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 received this message because you are subscribed to the Google Groups 
Racket Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: This is a digitally signed message part.


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:
 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
 *Phone-Number : 000-000-
 
 Instead I get : 
 
 *First-Name : John
 *Last-Name : Doe
 *Phone-Number : 000-000-
 
 In addition, If one uncomments the redirects to file, they get the correct 
 output (but it's not saved to a file): 
 *First-Name : John
 *Last-Name : Doe
 *Phone-Number : 000-000-
 
 Regards,
 Mark
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Racket Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email 
 to racket-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
Racket Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.