Re: [racket-users] Writing a blank to a file

2016-03-02 Thread Matthias Felleisen
(with-output-to-string #; "marco.txt" (lambda () (printf " "))) (Replace 'string' with 'file' and delete the comment char #;) On Mar 2, 2016, at 1:12 PM, Marco Morazan wrote: > > Hi All, > > I seem to recall I knew how to do this once, but can't recall the details. > > How do we write a bl

Re: [racket-users] Writing a blank to a file

2016-03-02 Thread Neil Van Dyke
Marco Morazan wrote on 03/02/2016 01:12 PM: How do we write a blank to a text file without the parallel bars appearing? So, (write '| | outfile) produces | | in the file. I want to eliminate the vertical bars. That quote and vertical bars are creating an unusual symbol. Do you instead want

Re: [racket-users] Writing a blank to a file

2016-03-02 Thread Marco Morazan
On Wednesday, March 2, 2016 at 1:15:30 PM UTC-5, Stephen Chang wrote: > Use display? or set read-accept-bar-quote to #f Thanks! Works like a charm! :-) Marco > > On Wed, Mar 2, 2016 at 1:12 PM, Marco Morazan wrote: > > > > Hi All, > > > > I seem to recall I knew how to do this once, but can't

Re: [racket-users] Writing a blank to a file

2016-03-02 Thread Leif Andersen
To clarify what Stephen wrote there a bit, you should probably want to only use `display` here. To a first approximation, `write` is used for writing out values that you can read back in with `read`. (This doesn't work in general and you actually want to make things marshlable if that is your goal,

Re: [racket-users] Writing a blank to a file

2016-03-02 Thread Stephen Chang
Use display? or set read-accept-bar-quote to #f On Wed, Mar 2, 2016 at 1:12 PM, Marco Morazan wrote: > > Hi All, > > I seem to recall I knew how to do this once, but can't recall the details. > > How do we write a blank to a text file without the parallel bars appearing? > > So, (write '| | outfi