Skip to content

Instantly share code, notes, and snippets.

@Sarchis
Created February 11, 2013 14:55
Show Gist options
  • Save Sarchis/4754874 to your computer and use it in GitHub Desktop.
Save Sarchis/4754874 to your computer and use it in GitHub Desktop.
#! /usr/bin/python
# -*-coding: utf-8-*-
name = raw_input('Ingrese su nombre: ')
filename = raw_input('Ingrese nombre del archivo: ')
abrir = open('simon', 'r')
chain = abrir.read()
chain = chain.replace('Simón', name)
abrir.close()
new = open(filename, 'w')
create = new.write(chain)
new.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment