How I can read and write data to flash memory?

with AVRDUDE.exe you can read and write flash from your PC,

you can read from it with PROGMEM (functions) from within a program. (google is your friend)

you cannot write to it from within a program.

[edit]
The above is true for UNO, I noticed this is DUE for which I expect the same is true, but maybe it is not. (sorry)