Disable Read Only dialog

Is there a way to disable the read only dialog when opening a read only file?