IsolatedStorage

  • Thread starter Thread starter Frazer
  • Start date Start date
F

Frazer

hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx
 
using System.IO.IsolatedStorage;

IsolatedStorageFile isoStore= IsolatedStorageFile.GetUserStoreForAssembly();

isoStore.CreateDirectory("Whatever");
System.IO.Stream fs = new IsolatedStoreageFileStream("Whatever.txt",
FileMode.Create, isoStore);
StreamWriter isoWriter = new StreamWriter(fs);


To get the files..

string[] isoFiles = isoStore.GetFileNames("FileFilter");
foreach(string isoFile in isoFiles){
//Whatever

}

--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
 
Thanx for that.
how do i see where this file is created.
and what is the advantage of using isolatedstorage?
thnx

William Ryan eMVP said:
using System.IO.IsolatedStorage;

IsolatedStorageFile isoStore= IsolatedStorageFile.GetUserStoreForAssembly();

isoStore.CreateDirectory("Whatever");
System.IO.Stream fs = new IsolatedStoreageFileStream("Whatever.txt",
FileMode.Create, isoStore);
StreamWriter isoWriter = new StreamWriter(fs);


To get the files..

string[] isoFiles = isoStore.GetFileNames("FileFilter");
foreach(string isoFile in isoFiles){
//Whatever

}

--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
Frazer said:
hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx
 
You're not suppose to see them anywhere, they're stored encrypted in the
user's machine. That's what the advantage is: user-specific free encryption
of data, organized under a filesystem of sorts.

--
Klaus H. Probst, MVP
http://www.vbbox.com/


Frazer said:
Thanx for that.
how do i see where this file is created.
and what is the advantage of using isolatedstorage?
thnx

William Ryan eMVP said:
using System.IO.IsolatedStorage;

IsolatedStorageFile isoStore= IsolatedStorageFile.GetUserStoreForAssembly();

isoStore.CreateDirectory("Whatever");
System.IO.Stream fs = new IsolatedStoreageFileStream("Whatever.txt",
FileMode.Create, isoStore);
StreamWriter isoWriter = new StreamWriter(fs);


To get the files..

string[] isoFiles = isoStore.GetFileNames("FileFilter");
foreach(string isoFile in isoFiles){
//Whatever

}

--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
Frazer said:
hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx
 
Back
Top