Imports System.IO.IsolatedStorage
Public Class Tester
Public Shared Sub Main
Dim myIsoStore As IsolatedStorageFile
Try
myIsoStore.CreateDirectory("oldDir")
Dim myIsoStroeStream As New IsolatedStorageFileStream("oldDir/oldFile", IO.FileMode.Create.Create, myIsoStore)
myIsoStroeStream.Close()
myIsoStore.DeleteDirectory("oldDir")
myIsoStore.DeleteFile("oldeDir/oldFile")
Catch ex As IsolatedStorageException
Console.WriteLine(ex.Message)
End Try
End Sub
End Class