Creating file

G

Guest

Hi EveryBody:

I used isolated storage to creat directory and here what I did:

Dim isoFile As System.IO.IsolatedStorage.IsolatedStorageFile =
System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorage.IsolatedStorageScope.User
Or IsolatedStorage.IsolatedStorageScope.Assembly Or
IsolatedStorage.IsolatedStorageScope.Domain,
GetType(System.Security.Policy.Url), GetType(System.Security.Policy.Url))

isoFile.CreateDirectory("Husam")

and then I used also isolated storage to creat file whithen the previous
directory:

Dim isoStream As New
System.IO.IsolatedStorage.IsolatedStorageFileStream("Husam\dual",
FileMode.OpenOrCreate, _
FileAccess.Write, FileShare.Write, 10240, isoFile)
but I foucs one problem which is how can I write or read data from the file
that i created?

any one can give a hint or direction to solve this proble ?

any help will be apprecitated

regard's

Husam
 
H

Herfried K. Wagner [MVP]

Husam said:
Dim isoStream As New
System.IO.IsolatedStorage.IsolatedStorageFileStream("Husam\dual",
FileMode.OpenOrCreate, _
FileAccess.Write, FileShare.Write, 10240, isoFile)
but I foucs one problem which is how can I write or read data from the
file
that i created?

any one can give a hint or direction to solve this proble ?

Take a look at the 'System.IO.StreamReader' and 'System.IO.StreamWriter'
classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top