"MJS" <tabletdesktop> wrote in message
news:f0171209.0309071012.606a61bdposting.google.c om...there> I have to ask the user to input any two digits e.g input= 3,5 (their
> value can be upto 300-whole numbers only). These two numbers have to
> be associated with multiple strings. As an example, 3 is associated
> to "hello" and 5 is associated to "cool". After the input, an existing
> file at various locations should be edited automatically. These
> locations can be determined by certain strings e.g "howr u" and "is
> it hot" etc? Once these strings are searched and found, then text like
> hello_1, hello_2, hello_3 and cool_1, cool_2,cool_3,cool_4, etc
> should be added to this file. The
> number of times hello_1, hello_2 etc and cool_1, cool_2 etc. should
> be added depends on the users input.
> a file contains some text.
> some text..... i m from the city..... "how r u" ..... how is the weather......> "is it hot".......thats good.
> when the user inputs 3, 5. The file should then be edited to
> some text ..... i m from the city ...."how r u" hello_1,hello_2,hello_3[script snipped]> how is the weather there "is it hot" cool_1,cool_2, cool_3, cool_4,
> cool_5........thats good.
.... And your question is?