How to save the ssid and the password local on my ESP8266

Hey guys
I have a Problem. On the internet, I found so many examples for that, but they dont work or are way to complicated. If anyone of you could give ma a good EEPROM or Spiff example, I would be very happy. Or when there is an even easier way to save data local it would be awsome.
Thx

Have you looked at the WiFiManager library?:

the esp8266 remembers ssid and password by itself.
run a sketch with WiFi.begin and then upload a sketch without it. you will see it connects to the same ssid

If u wanna read saved ssid and password from esp then use wifi.ssid() and wifi.psk(). They are returning String.

WiFi Manager takes care of all of this