C++, VBS, or Batch for text file creation / modification

Hello all. I'm trying to compile a text file from two different
existing text files and input from the user.

For example:
text1.txt says "It was the best of times it was the worst of times."
text2.txt says "To be or not to be that is the question."

When the program is run, a prompt would ask the user to write a
sentence.

The program would then create a new file named text3.txt that would
create a text file that would read:

It was the best of times it was the worst of times.
Now is the winter of our discontent <or whatever the user enters at a
prompt>
To be or not to be that is the question.

I'm trying to decide the best vehicle to use to write this program. It
doesn't matter to me if its run in a GUI environment or from the
console. I'm rusty with my file manipulations in C++, which is the
language I'm most familar with. Neither batch nor vbscript look overly
difficult to pick up and I would like to use either of them if they
lend themselves better to the task at hand.

Advertisements

"GoCoogs" <> wrote in message
news:...
> Hello all. I'm trying to compile a text file from two different
> existing text files and input from the user.
>
> For example:
> text1.txt says "It was the best of times it was the worst of times."
> text2.txt says "To be or not to be that is the question."
>
> When the program is run, a prompt would ask the user to write a
> sentence.
>
> The program would then create a new file named text3.txt that would
> create a text file that would read:
>
> It was the best of times it was the worst of times.
> Now is the winter of our discontent <or whatever the user enters at a
> prompt>
> To be or not to be that is the question.
>
> I'm trying to decide the best vehicle to use to write this program. It
> doesn't matter to me if its run in a GUI environment or from the
> console. I'm rusty with my file manipulations in C++, which is the
> language I'm most familar with. Neither batch nor vbscript look overly
> difficult to pick up and I would like to use either of them if they
> lend themselves better to the task at hand.
>
> What do all of you think?
>
> Thanks a lot for the advice
>

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!