Dim Text As String
Text = Hallo
' Datei schreiben
Nr = FreeFile
Open "C:\DeineDatei.txt" for Binary As #Nr
Put #Nr, , Text
Close #Nr
' Datei lesen
Nr = FreeFile
Open "C:\DeineDatei.txt" for Binary As #Nr
Text = Space(LOF(Nr))
Get #Nr, , Text
Close #Nr