Good afternoon to ol!!!
I would just like to know how to merge two text files into one. Using DOS command is simply:
Copy File1.txt+File2.txt File3.txt
In DotNET I tried:
File.Copy(cPath & "File1.txt + " & cPath & "File2.txt", cPath & "File3.txt")
... and ...
File.Copy(cPath & "File1.txt" + cPath & "File2.txt", cPath & "File3.txt")
... but both commands just gave out an error. Any ideas on how this can be achieved?
Actually, what I am trying to achieve here is to append a line into File2.txt. File1 is a header file that contains summary information regarding the records in file2. If anyone know how I can insert a line of text to the very 1st line of the text file, that would be even better!
Thanx! in advance!!!
Shit happens!!!