Every day I export a csv that has values seperated by "|". I need to change a value in an output file that I know will be between the 25th and 26th occurrence of "|".
Below is what I am currently doing, which is finding each date by hand, writing it down, then inputting it.
inputFile = open('example.csv',"r")
inputFile = ''.join([i for i in inputFile]).replace(DateToChange,ChangedDate)
outputFile = open("output.csv","w")
outputFile.writelines(inputFile)
outputFile.close()
Is there a way to find and replace text between two occurrences of the "|" character?