To illustrate how flash memory works, I thought to build a primitive FGMOSFET and show that it stores a single bit of information (charged, uncharged).
It would require a high voltage to charge, it could be unreliable and leak current, but it would show the basic idea, and I could disconnect and reconnect it, and show with a multimeter that it remains charged or uncharged.
Is that viable?
How would I do it?