Skip to content

Instantly share code, notes, and snippets.

@east
Created March 1, 2017 16:59
Show Gist options
  • Save east/e68053e7cb3178543949e92bcc5d25fb to your computer and use it in GitHub Desktop.
Save east/e68053e7cb3178543949e92bcc5d25fb to your computer and use it in GitHub Desktop.
writeFile = open("testdatei2.txt", "w");
with open("testdatei.txt", "r") as ins:
for line in ins:
newLine = "echo " + line;
writeFile.write(newLine);
writeFile.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment