
September 15th, 2004, 03:16 PM
|
|
Registered User
|
|
Join Date: Sep 2004
Posts: 5
Time spent in forums: 20 m 32 sec
Reputation Power: 0
|
|
|
Clearer description of problem
As I understand it, using Open for Append will add the new content to the end of the previous document. I need to add the content in the middle of the document. The problem is that the second table is a list of legal fields to use, which must be sorted alphabetically, depending on the language of the content. The first table is the remaining content for the page, which must be sorted on an order field. In addition, as I am managing 10 languages, each of which have approximately 20 different variants, the loops are getting complicated and I'm pushing the memory limits. I'd like to do this in two passes--create all the files from the first table, then add content to the three files that need the field lists added.
What I want to do is open the file, search for <--*****--> and write the new content to that location.
Quote: | Originally Posted by Darius I don't fully undestand, you are trying to replace text of concatenate the two tables in an ascii file?
If you are replacing text, why don't filter the first table before creating the file, ones the text file is created, you only replace in a text file taking it as a binary file and using put and get functions (both functions exists long time ago, I am not sure if in VB exists), replacing records of an "ascii database", another way could be to use a richtextbox, put the first table, select the text to replace, replace it and send it to a file
If concatenation is needed, you can use "Open filename for append as #1", and concatenate the second table to the file (just closed). |
|