Python Forum
problem in replace string into file - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: problem in replace string into file (/thread-15534.html)



problem in replace string into file - Saeid_Bibak - Jan-20-2019

hi
i have a template model,
and i want to open a file in python and replace any line of this file to one of template Models string that s name is "THISNUMBER"

then save this replaced template to new (VCF) file

[Image: 4n9QoOV]


RE: problem in replace string into file - Gribouillis - Jan-20-2019

There is a missing word open
outputFile = open(...)