can I copy the virtual memory of a process into a buffer? (for example, an array of bytes)?

I need this in order to see the values of variables (strings as well), at a moment, of a process.