You will dont lose any of your files, they're not saved on CPU, but in your HDD or SDD, as others said above.
Now, i have to say, never let you battery/laptop run out power, when the battery level is low, plug him in the outlet, this will save your battery life.
And about the CPU, like all other...