473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

IsolatedStorage

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

Thnx
Jul 21 '05 #1
4 2681
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" <Ic***@hotmail.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx

Jul 21 '05 #2
Thanx for that.
how do i see where this file is created.
and what is the advantage of using isolatedstorage?
thnx

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:un**************@TK2MSFTNGP12.phx.gbl...
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" <Ic***@hotmail.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx


Jul 21 '05 #3
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" <Ic***@hotmail.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
Thanx for that.
how do i see where this file is created.
and what is the advantage of using isolatedstorage?
thnx

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:un**************@TK2MSFTNGP12.phx.gbl...
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" <Ic***@hotmail.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx



Jul 21 '05 #4
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconintroductiontoisolatedstorage.asp
"Frazer" <Ic***@hotmail.com> wrote in message
news:Op*************@TK2MSFTNGP12.phx.gbl...
hi,
What is the advantage of storing data in the isolated storage.
Also how can i retrieve that data?

Thnx

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jody Gelowitz | last post by:
Exactly what is the size limit of Isolated Storage in the Internet permission set? I have a document indicating it is 10MB (http://msdn.microsoft.com/msdnmag/issues/02/07/NetSmartClients/) ...
1
by: Simon Chester | last post by:
Hello! Can anyone help me with this problem?... I have developed an ASP.NET (version 1.1) application which I have deployed to a number of webservers. The web application works fine on Windows...
0
by: Zdenek Drlik | last post by:
Hi, I have an ASP.NET application. I want to use IsolatedStorage in this application. When I run this application with anonymous access set in IIS (user set to IUSR_<machine>) and impersonation...
0
by: SampathTangudu | last post by:
Hi, We are trying to use the Hash Tables for passing information from one aspx page to another aspx page. We are using the below code. IsolatedStorageFile isoStore =...
2
by: Diana L | last post by:
Hi: I'm trying to get this isolated storage snippet to work. It's trying to write a few lines, then trying to read them and print them out to the browser. The browser prints the "Writing..."...
2
by: Josh Kandiko | last post by:
Hi, I've been having some frustrations with deleting files from the Isolated Storage directories. Basically, I want my application to remove all instances of configuration information for my...
0
by: sklett | last post by:
I'm pretty new to Isolated Storage and have run across a problem. I'm serializing a PageSettings object and storing using Isolated Storage. When trying to load the PageSettings I'm getting a...
1
by: Mythran | last post by:
We are using the P&P Enterprise Library Application Blocks in our applications and I'm reviewing how the EL stores it's cached data. As I was looking through the implementation of the security...
1
by: SteveM | last post by:
I am writing a ToolUsage tracker which we will be accessing from each of our custom written tools. It will basically capture various pieces of information about the user, and the application they...
2
by: mortovski | last post by:
Hi there, I'm working on a Windows application in C# and wanting to persist MDI window states so that when a user opens the application, it looks like it did when they closed it down. I've been...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.