How to get the current file path and know if the file is saved
===

I'm making a simple text editor in .net. I need to know how to get two things to work:

**1.** I need to know the full path of the current working file in the editor

**2.** I need to prompt the user to save the file on exit if it's not already saved (at all)

Please explain on how to get the above implemented. Thanks! :)