|
-
Aug 23rd, 2000, 06:55 PM
#1
Thread Starter
Addicted Member
Thanks
Thanks HeSaidJoe That worked.
-
Aug 23rd, 2000, 07:36 PM
#2
_______
<?>
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Aug 23rd, 2000, 11:24 PM
#3
Member
If I may add to HeSaidJoe's solution...(which by the way is a very good solution!) You could eliminate the array and increase speed and efficiency with a couple lines of code:
1) open an output file, "new file" before you start reading any of the input files.
2) Immediately after you do the Line Input statement, add a Print #intOutFile, trim(myLine)
3) close the output file outside the parent while loop.
When the last input file is closed and then you close the output file, all your processing is done.
This would eliminate the array completely, and essentially save resources and speed since you wouldn't be reDim-ming the array each time thru the loop. The program could process a directory with one file in it, or a directory with 1000 files in it and basically have the same efficiency. If a scenerio came up where you had to restore a month's worth of txt files, then run your program against them, creating a single txt file, there would be no worry about the program running out of resources.
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
|