|
-
Mar 9th, 2000, 04:03 AM
#1
Thread Starter
New Member
Is there a way to append files in visual basic like the DOS command Copy file1+file2+file3 outputfile?
Is ther ANY way to append files in VB?
-
Mar 9th, 2000, 04:27 AM
#2
Hyperactive Member
Well, it depends what you're trying to append...
You can append text files together if you use the Open "FILE" As... and print them all out into one file and save it.
-
Mar 9th, 2000, 04:46 AM
#3
Addicted Member
Dim buffer as String
Dim inputfilename(1 to numberofinputfiles) as String
Open Outputfilename For Output as #1
For i = 1 to numberofinputfiles
Open inputfilename for Input as #i + 1
buffer = buffer & Input(LOF(#i + 1), #i + 1)
Close #i + 1
Next i
Print #1, buffer
Close #1
I didn't try it but I hope it works
Razzle
ICQ#: 31429438
What is the difference between a raven?
-The legs. The length is equal, especially the right one. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|