tags:

views:

111

answers:

1

Example (native GIF header):

GIF89a (47 49 46 38 39 61)

I want to read this file, and shift its hex content (--++ pattern)

FHG98` (46 48 47 39 38 60)

+2  A: 
File.WriteAllBytes("output.dat", File.ReadAllBytes("input.dat")
                                     .Select((b,i)=> (byte)(i%4 < 2 ? b-1 : b+1))
                                     .ToArray());
dtb
some explanation for the user thats new to programming would be usefull. Unreadable lambda's won't help the user to understand it.
PoweRoy