Need HTML/Text File Compiler with these characteristics...

by khp
4 replies
  • WEB DESIGN
  • |
Need a compiler that can be used for inserting text files into another text file. So for instance, here is a file called "FileMaster.txt"
I also have 2 other files .... File2.txt and File3.txt
Would like to put some reference to those files within the "master"
and when the compiler runs, it inserts the contents of those files
into the master.

-------------------------------------------------------------------------------------
FileMaster.txt
*********************
* master file to compile *
*********************
*INSERT FILE2.TXT *
*INSERT FILE3.TXT *

*********************
* end of file master *
*********************
-------------------------------------------------------------------------------------

File2.txt
text for this file goes here
more text here
mroe text here
-------------------------------------------------------------------------------------
File3.txt
file three text stuff here
more stuff here
more stuff here
-------------------------------------------------------------------------------------

Is there a simple text compiler that does this?
Thanks
#characteristics #compiler #file #html or text
  • Profile picture of the author Istvan Horvath
    1. Not enough info: e.g. should this happen online or on your desktop etc.?

    2. You may have more luck in the Programming sub-forum.
    Signature

    {{ DiscussionBoard.errors[5979618].message }}
    • Profile picture of the author IMBotz
      Can you elaborate a bit? Does the master file have file names and you need to add their respective content to this file?

      I may write a tool for you depending on the complexity and time needed. How many files are involved in this project?
      {{ DiscussionBoard.errors[5982551].message }}
      • Profile picture of the author TG12
        HTML doesn't get compiled, Its an interpreted "language" and I use the word language loosely!
        Signature
        Vaoser Link Ninja Software
        DHV Delivery Systems FAILING at online dating???
        {{ DiscussionBoard.errors[5982584].message }}
        • Profile picture of the author khp
          1. This will happen on my desktop
          2. Can you elaborate a bit? Does the master file have file names and you need to add their respective content to this file? - sure. The file has "reference file names" embedded in the file. When the "compile" happens, these reference names are replaced by the content of the files that they reference.
          3. HTML doesn't get compiled, Its an interpreted "language" and I use the word language loosely! - yeah. I know that HTML isnt compiled. Many lifetimes ago, I was also a programmer. Compile is being used very loosley here too. Combine? Composite? Build?
          4. I may write a tool for you depending on the complexity and time needed. How many files are involved in this project?- at the most, 20-30 files might be involved in any "project". Most of the time it will be 10 or so.
          So for instance, there will be a master file.

          lets call it master.txt


          master.txt has 3 lines in it (just for this example)
          ---------------------------
          * file2.txt
          * file3.txt
          * file4.txt




          ---------------------------


          so whenever the "compiler" finds a reference I to a "txt" file... it goes out and finds that file in the current directory, and replaces that reference with the contents of that file. Pretty simple.



          I think YGen does something like this, but I cant for the life of me figure out how to make it do this. And I am not looking for bells and whistles. Just a way to quickly build a text file from sub text files.



          hope this helps.
          {{ DiscussionBoard.errors[6010058].message }}

Trending Topics