def replaceProjectVersion(filename, newversion):
 f = open(filename, 'w')
 f.write(generateVersionFileData(newversion))
 f.close()

def replaceProjectVersion ( filename , newversion ) : f = open ( filename , 'w' ) f . write ( generateVersionFileData ( newversion ) ) f . close ( )
write version specification code into the given filename .