title: How to save data on Windows Store App Close?
body: <p>i have the following problem. When the user closes the Windows store app, i want a text file with data to be saved.</p>
  
  <p>What method should i write so that when closing the app a file gets saved ?</p>