Sub FileAppendString(FileDir As String, FileName As String, NewString As String)
Dim NewBytes() As Byte = NewString.GetBytes("UTF8")
Dim fh As OutputStream = File.OpenOutput(FileDir, FileName, True)
fh.WriteBytes(NewBytes, 0, NewBytes.Length)
fh.Close
End Sub
Sub FileAppendLine(FileDir As String, FileName As String, NewLine As String)
FileAppendString(FileDir, FileName, NewLine & CRLF)
End Sub