So kannst du Werte in eine Datei speichern :
So kannst du Werte aus einer Datei auslesen :
Bsp für das speichern
Code:
Dim sw As New StreamWriter("Test.txt")
sw.WriteLine("Ich bin Faul")
sw.WriteLine("und will eine Source")
sw.Close
Bsp für das Laden
Code:
If System.IO.File.Exists(My.Application.Info.DirectoryPath & "/Text.txt") Then
Dim sr As New StreamReader("Test.txt")
Zeile_1 = sr.ReadLine() 'Ausgabe wäre -> "Ich bin Faul"'
Zeile_2 = sr.ReadLine() 'Ausgabe wäre -> "und will eine Source"'
End if
MFG Oshumar