#!/usr/bin/env python
# -*- coding: UTF-8 -*-

class File:

	file = None

	def __init__(self):
		pass

	@staticmethod
	def open(obj, flag):
		File.file = file(obj, flag)
		return File

	@staticmethod
	def read():
		result = File.file.read()
		File.file.close()
		return result

	@staticmethod
	def write(txt):
		File.file.write(txt)
		File.file.close()


File.open("1.txt", 'w+').write('ddd')
#print File.open("1.txt", 'r').read()