On Mon, Jun 24, 2019 at 5:19 PM Shu-Hung You <
shu-hung....@eecs.northwestern.edu> wrote:

>
>
> FWIW, (write "foo") writes "\"foo\"" to the file. Maybe you want
> write-string or write-bytes?
>

*facepalm*

I think I want a better brain.  Thank you.


Matthew, thanks for the clarification about append mode.  Sure enough, as
soon as I take it out of 'append everything is fine.

Dave



>
>
> > On Mon, Jun 24, 2019 at 4:57 PM Jon Zeppieri <zeppi...@gmail.com> wrote:
> >>
> >> On Mon, Jun 24, 2019 at 4:51 PM Jon Zeppieri <zeppi...@gmail.com>
> wrote:
> >> >
> >> > `lseek` docs say:
> >> >
> >> > > The lseek() function shall allow the file offset to be set beyond
> the end of the existing data in the file. If data is later written at this
> point, subsequent reads of data in the gap shall return bytes with the
> value 0 until data is actually written into the gap.
> >> >
> >>
> >> And the Windows call `SetFilePosition` is similar:
> >>
> >> > It is not an error to set a file pointer to a position beyond the end
> of the file. The size of the file does not increase until you call the
> SetEndOfFile, WriteFile, or WriteFileEx function. A write operation
> increases the size of the file to the file pointer position plus the size
> of the buffer written, which results in the intervening bytes uninitialized.
> >
> > --
> > 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.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/CAE8gKodw3c2wqUBdAPKRkX3hqin4fhZ8kjeFKh3LouFhY4-8XQ%40mail.gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAE8gKodnAf5yo9P-HyU4pkCgeZDxKxtLmZ4XzP%2BRc0ugmFj3yA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to