From: Jos Backus Date: 2008-05-11T16:31:39+09:00 Subject: Re: IO#putc writing 2 bytes? On Sun, May 11, 2008 at 03:28:31PM +0900, Minic Minic wrote: > Anyways, I decided to write a SRAM save file editor for a popular > GameBoy game. Problem is for some reason putc is writing 2 bytes when > ever I try to write 0x0A. It instead writes 0D 0A into the file. Looks like you are on Windows. Try opening @SaveFile in binary mode (@SaveFile = File.open("fname", "wb")) which prevents LF -> CRLF conversion. -- Jos Backus jos at catnook.com