Objective: a simple program that will be able to select and replace multiple values with new data
Key Steps:
- Open a target file
- Identify the values that needs to be replaced
- Have a mapping of old and new values
- Replace the the old values with the new values
- Create a new file with the replaced values
- Have a count of the replaced values
Sub steps:
-
Have a target file
-
Have a simple mapping file
-
Set up a github repository
''' I want a function that will: 1. Open a file 2. Count the search words 3. return the search words 4. write the words into a text file '''
''' I want a function that will: 1. open a the file 2. store the values of the file to adictionary '''
''' I want a function that will: 1. Open the target file 2. Map the old to new vlues using the mapping dictionary 3. replace the values and count the values replaced 4. save the file to a new file 5. print out the file location of the new file 6. write a line in the new file and the values with count replaced
'''
''' I want a function that will create folders: 1. In the current direcntory, check if there is already an in/out 2. if none, create the directories '''