Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

You will be provided a file path for input I, a file path for output O, a string S, and a string T.

file1 = open(I, 'r')
Icontent = file1.read()
editedData = Icontent.replace(S, T)
file2 = open(O, 'w')
file2.write(editedData)
file1.close()
file2.close()
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #You #file #path #input #file #path #output #string #string
ADD COMMENT
Topic
Name
3+7 =