<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FFile_Directory_Stream%2FIsolatedStorage</id>
		<title>Csharp/CSharp Tutorial/File Directory Stream/IsolatedStorage - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FFile_Directory_Stream%2FIsolatedStorage"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/IsolatedStorage&amp;action=history"/>
		<updated>2026-04-29T13:41:53Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/IsolatedStorage&amp;diff=6772&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/IsolatedStorage&amp;diff=6772&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/IsolatedStorage&amp;diff=6773&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/IsolatedStorage&amp;diff=6773&amp;oldid=prev"/>
				<updated>2010-05-26T12:20:24Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Create Directory in your Isolated Storage File==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
static class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main()&lt;br /&gt;
    {&lt;br /&gt;
        using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())&lt;br /&gt;
        {&lt;br /&gt;
            store.CreateDirectory(&amp;quot;MyFolder&amp;quot;);&lt;br /&gt;
            Console.WriteLine(&amp;quot;Current size: &amp;quot; + store.CurrentSize.ToString());&lt;br /&gt;
            Console.WriteLine(&amp;quot;Scope: &amp;quot; + store.Scope.ToString());&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Current size: 2048&lt;br /&gt;
Scope: User, Assembly&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Get included files in your Isolated Storage File==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
static class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main()&lt;br /&gt;
    {&lt;br /&gt;
        using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;Contained files include:&amp;quot;);&lt;br /&gt;
            string[] files = store.GetFileNames(&amp;quot;*.*&amp;quot;);&lt;br /&gt;
            foreach (string file in files)&lt;br /&gt;
            {&lt;br /&gt;
                Console.WriteLine(file);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Contained files include:&lt;br /&gt;
MyFile.txt&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Open up isolated storage based on identity of user + assembly evidence==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
using System.Security.Permissions;&lt;br /&gt;
[assembly: IsolatedStorageFilePermission(SecurityAction.RequestMinimum, UsageAllowed = IsolatedStorageContainment.AssemblyIsolationByUser)]&lt;br /&gt;
public class MainClass{&lt;br /&gt;
    public static void Main()&lt;br /&gt;
    {&lt;br /&gt;
      using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())&lt;br /&gt;
      {&lt;br /&gt;
        using (IsolatedStorageFileStream isStream = new IsolatedStorageFileStream(&amp;quot;MyData.txt&amp;quot;,FileMode.OpenOrCreate, store))&lt;br /&gt;
        {&lt;br /&gt;
          using (StreamWriter sw = new StreamWriter(isStream))&lt;br /&gt;
          {&lt;br /&gt;
            sw.WriteLine(&amp;quot;This is my data.&amp;quot;);&lt;br /&gt;
            sw.WriteLine(&amp;quot;Cool, huh?&amp;quot;);&lt;br /&gt;
          }&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Read from IsolatedStorage==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
using System.Text;&lt;br /&gt;
    public class Tester&lt;br /&gt;
    {&lt;br /&gt;
        public static void Main()&lt;br /&gt;
        {&lt;br /&gt;
            Tester app = new Tester();&lt;br /&gt;
            app.Run();&lt;br /&gt;
        }&lt;br /&gt;
        private void Run()&lt;br /&gt;
        {&lt;br /&gt;
            IsolatedStorageFileStream configFile = new IsolatedStorageFileStream(&amp;quot;Tester.cfg&amp;quot;, FileMode.Open);&lt;br /&gt;
            StreamReader reader = new StreamReader(configFile);&lt;br /&gt;
            string theEntry;&lt;br /&gt;
            do&lt;br /&gt;
            {&lt;br /&gt;
                theEntry = reader.ReadLine();&lt;br /&gt;
                Console.WriteLine(theEntry);&lt;br /&gt;
            } while (theEntry != null);&lt;br /&gt;
            reader.Close();&lt;br /&gt;
            configFile.Close();&lt;br /&gt;
        }&lt;br /&gt;
    }&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Read text in From IsoStorage==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
using System.IO;&lt;br /&gt;
  class MainClass&lt;br /&gt;
  {&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
      using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())&lt;br /&gt;
      {&lt;br /&gt;
        using (IsolatedStorageFileStream isStream = new IsolatedStorageFileStream(&amp;quot;MyData.txt&amp;quot;, FileMode.Open,FileAccess.Read, store))&lt;br /&gt;
        {&lt;br /&gt;
          using (StreamReader sr = new StreamReader(isStream))&lt;br /&gt;
          {&lt;br /&gt;
            string allTheData = sr.ReadToEnd();&lt;br /&gt;
            Console.WriteLine(allTheData);&lt;br /&gt;
          }&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
  }&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Save file to Isolated Storage File==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
static class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main()&lt;br /&gt;
    {&lt;br /&gt;
        using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForAssembly())&lt;br /&gt;
        {&lt;br /&gt;
            store.CreateDirectory(&amp;quot;MyFolder&amp;quot;);&lt;br /&gt;
            using (Stream fs = new IsolatedStorageFileStream(&amp;quot;MyFile.txt&amp;quot;, FileMode.Create, store))&lt;br /&gt;
            {&lt;br /&gt;
                StreamWriter w = new StreamWriter(fs);&lt;br /&gt;
                w.WriteLine(&amp;quot;Test&amp;quot;);&lt;br /&gt;
                w.Flush();&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Write text out To IsoStorage==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
using System.IO;&lt;br /&gt;
  class MainClass&lt;br /&gt;
  {&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
      using (IsolatedStorageFile store =IsolatedStorageFile.GetUserStoreForAssembly())&lt;br /&gt;
      {&lt;br /&gt;
        using (IsolatedStorageFileStream isStream = new IsolatedStorageFileStream(&amp;quot;MyData.txt&amp;quot;,FileMode.OpenOrCreate, store))&lt;br /&gt;
        {&lt;br /&gt;
          using (StreamWriter sw = new StreamWriter(isStream))&lt;br /&gt;
          {&lt;br /&gt;
            sw.WriteLine(&amp;quot;data.&amp;quot;);&lt;br /&gt;
            sw.WriteLine(&amp;quot;Cool?&amp;quot;);&lt;br /&gt;
          }&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
  }&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Writing To Isolated Storage==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.IO.IsolatedStorage;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
    public class Tester&lt;br /&gt;
    {&lt;br /&gt;
        public static void Main()&lt;br /&gt;
        {&lt;br /&gt;
            IsolatedStorageFileStream configFile =new IsolatedStorageFileStream(&amp;quot;Tester.cfg&amp;quot;, FileMode.Create);&lt;br /&gt;
            StreamWriter writer = new StreamWriter(configFile);&lt;br /&gt;
            String output;&lt;br /&gt;
            System.DateTime currentTime = System.DateTime.Now;&lt;br /&gt;
            output = &amp;quot;Last access: &amp;quot; + currentTime.ToString();&lt;br /&gt;
            writer.WriteLine(output);&lt;br /&gt;
            output = &amp;quot;Last position = 27,35&amp;quot;;&lt;br /&gt;
            writer.WriteLine(output);&lt;br /&gt;
            writer.Close();&lt;br /&gt;
            configFile.Close();&lt;br /&gt;
        }&lt;br /&gt;
    }&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>