Originally Posted by OM2
I want to write a program that will look through file names in a directory
These files will be HTML or PHP (or ASP) or CSS - but just be plain text files
There will be special file names, like index.myName.textparser.html
When ever it comes across a file with 'textparser' in, it will go through all other text files in the directory and search for:
<!-- Start myName -->
<!-- End myName -->
and replace everything between those 2 markers the contents of the file index.myName.textparser.html
I'm hoping someone will understand what I want to do!
What language would be best to code in?
Important: the program MUST be standalone!
Otherwise, I would write using Perl or something for multi platform - but then you need the end user to have the Perl programming language!
ALSO of consideration: I would like the end result be multi platform and be usable on many OS's
I'd also like to automatically do sub directories - but that can come afterwards - that would be easy to add once we have figured out the first part
Any feedback would be great
Due to your cross platform requirement your best bet it to just use a scripting language but of course the end user will need that scripts interpreter installed on the machine where the script will be run. Even though I despise Python it would be a good candidate for this task and is a cross platform scripting language.
If you still want a high end language then Java would work and would only need to be compiled once but then again you need the JVM installed on each platform to run it. You could use other languages such as C/C++ but you would have to compile and build the executables for each platform you intend to support.