private void load_Click(object sender, RoutedEventArgs e)
{
//TODO write parser for load
try
{
if (loadName.Text != null)
{
SAVEFILENAME = loadName.Text;
}
IsolatedStorageFile iso = IsolatedStorageFile.GetUserStoreForApplication();
using (IsolatedStorageFileStream isoStream = new IsolatedStorageFileStream(SAVEFILENAME, FileMode.Open, iso))
{
using (StreamReader reader = new StreamReader(isoStream))
{
//do something with it
loadLabel.Text = reader.ReadLine();
}
}
}
catch (Exception bException)
{
loadLabel.Text = bException.Message;
}
}