Save laststate of output relay

Dear i glad to contact you via blynk community ,also i like ESP32 Homeautomation ,but this is perfect working ,dear i need your help in order to use ESP32 code , i mean when the light or power loss of ESP32 or Reset the outputs pin could’n store state in EEPROM
kindky help me how to store last state.plz give me code

Here is mine Code

#define BLYNK_PRINT Serial

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “YourAuthToken”;

// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “YourNetworkName”;
char pass[] = “YourPassword”;

void setup()
// Debug console

Blynk.begin(auth, ssid, pass);

void loop()

@wahla please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this: