Editing Text files through Code

Treason

#@$%#!
Local time
Yesterday, 21:18
Joined
Mar 12, 2002
Messages
340
I am looking take all the text from file2.txt and append it to the very end of file1.txt through code. Is this possible?
 
you could do it through a batch file (DOS).

if you use the TYPE command and >> it will append one file to the end of another.

Type C:\file1.txt >> C:\file2.txt

This will put the contents of file1 onto the end of file2. If you need a carrige return between the appended documents, you can create another txt file that has only a return in it.

If this will do the trick, then open notepad, type in the command, and save it as a .bat file and you can call it from within access.
 
Sweet... :D Thanx a million!
 

Users who are viewing this thread

Back
Top Bottom