How do you write or store values in the flash memory?

I want to store a value into the onboard flash memory of my arduino and then my void_loop() will check this value in memory and do things accordingly. How to do this? I need the value to be there even when power is off.

EDIT: Nevermind, sorry!

You can write values to EEPROM with avrdude.exe which is part of the Arduino distribution.
Your program (in FLASH) can check it.

maybe that suits your need?

The EEPROM library is included in the arduino IDE. Include the library to your code with
#include <EEPROM.h>
Look at: http://arduino.cc/en/Reference/EEPROM

Elektrix