none
StreamWriter RRS feed

  • Question

  • Hi, I have problem with this block of code:
    
    using(StreamWriter streamWriter = new StreamWriter(new IsolatedStorageFileStream("Data\\" + nameTB.Text + ".txt", FileMode.CreateNew, myIsolatedStorage)))
                    {
                        foreach (string item in listBox1.Items)
                        {
                            streamWriter.WriteLine(item);
                        }
                    }
    
    I don´t know where is a problem!
    Saturday, November 12, 2011 11:02 PM

Answers

  • That's probably because Windows Mobile does not support isolated storage.

    Unless you posted to a wrong forum? If so then see pinned topic on how to find Windows Phone 7 forums if that's what you're targeting.

    If you going to post to a correct forum then consider adding way more details or you would not get an answer. Check out this on how to post correctly: http://www.danielmoth.com/Blog/Please-Read-Before-Posting-To-The-Ng.aspx


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Sunday, November 13, 2011 12:35 AM
    Moderator