Muze mi prosim nekdo rict, v cem mam chybu u techto 2 kodu? ani jeden z nich se nedostane pres otevirani txt....
using (StreamReader reader = new StreamReader("Silverlight.txt"))
{
string line = string.Empty;
while ((line = reader.ReadLine()) != null)
{
galerie[count - 1] = line;
count++;
}
}
label1.Content = galerie[3];
IsolatedStorageFile isf =IsolatedStorageFile.GetUserStoreForApplication();
Stream stream = new IsolatedStorageFileStream("Silverlight.txt", FileMode.Open, FileAccess.Read, isf);
TextReader reader = new StreamReader(stream);
string sLine = reader.ReadLine();
while (sLine!=null)
{
galerie[count - 1] = sLine;
count++;
sLine = reader.ReadLine();
}
reader.Close();
stream.Close();