Hello, I have this code to save a ListBox into a File.txt, but when its saves, automatic add a Line without text. I try with other things but it don’t work and the same line appear. This Is The Code, any Help? Thanks in Advance
Dim f as FolderItem
Dim tos as TextOutputStream
Dim strOutFileName As String
Dim strOutString As String
' Assign the required file name to the output file
strOutFileName = "file.txt"
' Open output file
f=SpecialFolder.Desktop.Child(strOutFileName)
If f <> Nil Then
tos = TextOutputStream.Create(f)
' Assign the required value to output string
strOutString = Listbox1.Cell(-1,-1).ToText
tos.WriteLine strOutString
tos.Close
End If