Hello everyone, I'm new in Autoit and I need to build an auto-replace text in files to replace a huge database test question from app to web and it looks like this:
File.ptx (or .txt)
and output:
File .txt
With "1." and "2." is number of questions,Correct is number which is right in line:
Sorry for my bad english. Many Tks for help!
File.ptx (or .txt)
Quote
1. What is the name of the cat?
*Doremon
Kitten
Cute
Dog
2.what is the name of the dog?
Doremon
Kitten
Cute
*Puppy
*Doremon
Kitten
Cute
Dog
2.what is the name of the dog?
Doremon
Kitten
Cute
*Puppy
and output:
File .txt
Quote
Question: What is the name of the cat?
Choice: Doremon
Choice: Kitten
Choice: Cute
Choice: Dog
Correct:1
Question: What is the name of the dog?
Choice: Doremon
Choice: Kitten
Choice: Cute
Choice: Puppy
Correct:4
Choice: Doremon
Choice: Kitten
Choice: Cute
Choice: Dog
Correct:1
Question: What is the name of the dog?
Choice: Doremon
Choice: Kitten
Choice: Cute
Choice: Puppy
Correct:4
With "1." and "2." is number of questions,Correct is number which is right in line:
Quote
Line1: Question:
Line2: Choice:
Line3: Choice:
Line4: Choice:
Line5: Choice:
Line6: Correct: $line_number (in $line has *)
Line2: Choice:
Line3: Choice:
Line4: Choice:
Line5: Choice:
Line6: Correct: $line_number (in $line has *)
Sorry for my bad english. Many Tks for help!