The associated script cannot be loaded. empty script

My system shutdown due to power failure after rebooting the system and opening unity i received this error. the missing script is my main script and i was working with this script when system crashed. now my script. Is there anyway to recover this. this is my main script and its over 1000 lines of code.

Yes. You would get the latest version from your backup or source control.

You might open up Windows Explorer (or your OS’s equivalent) and navigate to the folder and open the file outside of Unity to see if anything is there.