I’m having trouble getting an open/write/close cycle to actually put the
correct data in the file. Here’s some code that illustrates the problem:
as output. However, the file ‘junk’ is filled with zeroes, except for
the last 10 bytes, which are what you’d expect them to be:
Anyone know what I’m doing wrong? I tried using sysseek and syswrite,
but I got the same results. Is Ruby’s internal buffering screwing me up
here somehow? TIA.