VB.NET - Save Text in Isolated Storage



Writes a string to the assembly or user-isolated storage

'Namespace: System.IO
'Namespace: System.IO.IsolatedStorage
'Namespace: Microsoft.VisualBasic

'storage: "syntaxhelp.txt"
'data: "hello world"

Dim isolatedStore As IsolatedStorageFile = IsolatedStorageFile.GetStore(IsolatedStorageScope.User Or IsolatedStorageScope.Assembly, Nothing, Nothing)
Dim isoStream As New IsolatedStorageFileStream("syntaxhelp.txt", FileMode.Append, FileAccess.Write, isolatedStore)

Using writer As New StreamWriter(isoStream)
	writer.WriteLine("hello world")
End Using

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.