I have successfully used List.Sort to sort a list of items in a text file but the process adds a blank line at the end of the file. Can I avoid this? Please forgive me if this is a very simple question?
This is the relevant code:
Sub EditText3_EnterPressed
outFile.Initialize(File.OpenOutput(File.DirDefaultExternal, Text3, True))
outFile.WriteLine(CRLF & Text2)
outFile.Close
List1 = File.ReadList(File.DirDefaultExternal, Text3)
'Sort file into descending alphabetical order
List1.Sort(True)
File.WriteList(File.DirDefaultExternal, Text3, List1)
End Sub
This is the relevant code:
Sub EditText3_EnterPressed
outFile.Initialize(File.OpenOutput(File.DirDefaultExternal, Text3, True))
outFile.WriteLine(CRLF & Text2)
outFile.Close
List1 = File.ReadList(File.DirDefaultExternal, Text3)
'Sort file into descending alphabetical order
List1.Sort(True)
File.WriteList(File.DirDefaultExternal, Text3, List1)
End Sub