#file_get_contents-file_put_contents # import os # file_get_contents function def file_get_contents(filename): if not os.path.isfile(filename): return false f = open(filename, 'r') return f.read() # file_put_contents function def file_put_contents(filename,data): if not os.path.isfile(filename): return false f = open(filename, 'w') f.write(data) f.close()