Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Merging Two Text Files
Message
De
04/10/2004 05:08:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Merging Two Text Files
Divers
Thread ID:
00948382
Message ID:
00948382
Vues:
61
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!!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform