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