How can we edit files that complied into exe.?

I need to save one file into compiled exe. while exe is execution is running is it possible ?
If it possible how can i do this ? Can any one help me pls.

You can’t save a file into the EXE directly. You could save the file in an external folder, for instance, the “Data” subfolder (see documentation), and it can be executed later, since it is in the “Data” subfolder.

i want to save folder in E: or D: drive (not OS installed drive) while exe running is’t possible ?

This should help you: http://www.exeoutput.com/help/savingfiles

If E or D isn’t write protected, it shouldn’t be a problem.