#!/usr/bin/env python """ Open the build.txt file.. increment the number and close it """ f = open('../area/build.txt','r+') build_nbr = f.read() newbuild = int(build_nbr) + 1 f.seek(0,0) f.write(`newbuild`) f.close() print "Done!"