Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Need to build an auto-replace text files

$
0
0
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)

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

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

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 *)

Sorry for my bad english. Many Tks for help!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>