' Variant 1
Dim li As List
li.Initialize2( Array As Int( 1,2,3))
File.WriteList( File.DirApp, "list.txt", li)
' Variant 2
Dim sb As StringBuilder
sb.Initialize
For Each item As Int In li
sb.Append( item).Append( CRLF)
Next
File.WriteString( File.DirApp, "string.txt", sb.ToString)
' Variant 3
Dim tw As TextWriter
tw.Initialize( File.OpenOutput( File.DirApp, "writer.txt", False))
tw.Write( sb.ToString)
tw.Close
' Variant 4
tw.Initialize( File.OpenOutput( File.DirApp, "line.txt", True))
For Each item As Int In li
tw.WriteLine( item)
Next
tw.Close