Question: I need python help .. I need to know if a user were to input 3 commands to a program and run it such as

I need python help .. I need to know if a user were to input 3 commands to a program and run it such as specify: Usage: ./filemaker INPUTCOMMANDFILE OUTPUTFILE RECORDCOUNT (./filemaker is the program)( (INPUTCOOMANDFUILE= a text file that contains key words that need to be searched through then decided what to do ) (RECORDCOUNT= number)

This is what I need to do: Given an input file that contains the following:

for example: Scenario: Script outputs the correct number of records Given a file named "smallcmd" with: """ STRING "hello, world! " """ When I run `../bin/filemaker smallcmd smalloutput 3` Then the file "smalloutput" should contain: """ hello, world! hello, world! hello, world! """

What i need is for the python program to be able to search the text file, and put it either in a list or a dictionary or both.. It needs to search that file for the if the KEYWORD "STRING" is in that file.. if it is it then needs to match the output that i have shown print only the letters or string that comes after that keyword.. in this case since the user entered the number 3 it has to loop that 3 times.. exactly as the input shows.. please make sure that the output is sent to a textfile Thanks please ask me to clarify anything

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!