Ensure input file exists. Create output file (overwriting if necessary).

This commit is contained in:
JSCHILL1 2009-04-03 13:38:10 -05:00
parent 2533ba7fd3
commit fb1f17e359

View file

@ -22,8 +22,6 @@
# TODOs: # TODOs:
# #
# 3) Issue error if input.svg does not exist
# 4) Create the output file (issue error if cannot create)
# 5) Copy input file text to output file text # 5) Copy input file text to output file text
# 6) Read input file into memory using an XML library # 6) Read input file into memory using an XML library
# 7) Implement a function that will remove all unreferenced id attributes from # 7) Implement a function that will remove all unreferenced id attributes from
@ -68,4 +66,8 @@ if( outfile == '' ):
print 'Error! -o argument is missing' print 'Error! -o argument is missing'
quit() quit()
print 'infile=' + infile + ', outfile=' + outfile input = open(infile, 'r')
output = open(outfile, 'w')
input.close()
output.close()