I am appending a very large text file, however when it is complete and I go to view it i get the following error. Null characters (00H) contained in file. This is the code I'm using to read all the text files to one large text file. I am opening the large file in EmEditor.
Any help gratefully received.
Dim Paths() As String = Directory.GetFiles("c:\logs1", "main_access_log.*", SearchOption.AllDirectories)
System.Windows.Forms.Cursor.Current = Cursors.WaitCursor
For Each Path As String In Paths
File.AppendAllText("c:\logs1\zmaster.txt", File.ReadAllText(Path), Encoding.Default)
Next
System.Windows.Forms.Cursor.Current = Cursors.Default
MessageBox.Show("Master File Created")