¡@

Home 

python Programming Glossary: sanity_automation

How do I write to the middle of a text file while reading its contents?

http://stackoverflow.com/questions/16556944/how-do-i-write-to-the-middle-of-a-text-file-while-reading-its-contents

as below.. import os import shutil data set filelid open C Sanity_Automation Work_Project Output smokeTestResult w n puts filelid n close.. smokeTestResult w n puts filelid n close filelid n path C Sanity_Automation RouterTester900SystemTest if os.path.exists path shutil.rmtree.. if os.path.exists path shutil.rmtree 'C Sanity_Automation RouterTester900SystemTest ' path C Program Files x86 if os.path.exists..