from sys import argv

script,filename = agrv

print " were going to erase %r." % filename
print " if you dont want that, hit ctrl-c ^C. "
print " if you do want that, hit return."

raw_input("?")

print "opening the file.."
target = open (filename, 'w')

print " truncating the file. good bye "
target.truncate()

print " now im going to ask you for three lines"

line1 = raw_input ("line 1: " )
line2 = raw_input ("line 2: " )
line3 = raw_input ("line 3: " )

print " im going to write to file"

target.write(line1)
target.write("\n")
target.write(line2)
target.write("\n")
target.write(line3)
target.write("\n")

print " and finaly we close it"
target.close()
             

    
