Using python in IDA, I would like tu create a partial file dump.For exemple I would like to dump the data from offset X for a size of Y.I believe I could do it by using the idc.Dword function :offset = Xres = []while offset < offset + Y:    res.append(idc.Dword(offset))    offset += 4return resIs there a way of achieving that without reading manually each address?
IDA python : reading n bytes from an offset
ida;python