# # f = open(r'd:\test\test.doc','w')
# # print f
# # f.close()
# # f=open(r'd:\test\test.doc','w')
# # f.write('hello java')
# # print f
# # f.write('i am here')
# # print f
# # f.close()
# # print f
# # f=open(r"d:\test\test.doc","r")
# # print f
# # f = open(r"d:\test\test.doc",'r')
# # content = f.read()
# # print content
# # f.close()
# # f = open(r'd:\test\test.doc','r')
# # content=f.readline()
# # print (type(content))
# # i =1
# # for temp in content:
# # print ("%d:%s"%(i,temp))
# # i+=1
# # f.close()
# # f = open(r"d:\test\test.doc","r")
# # content = f.readline()
# # # f = open(r"d:\test\test.doc","r")
# # # f = open(r"d:\test\test.doc","r")
# # print ("1:%s"%content)
# # c = f.readline()
# # print ("2:%s"%c)
# # s = f.read()
# # print "78"*10
# # print s
# # f.close()
# # f = open(r"d:\test\test.doc","r")
# # str = f.read(3)
# # print "the number is:%s", str
# # p = f.tell()
# # print ("the position is",p)
# #
# # str=f.read(3)
# # print"dig",str
# # ps = f.tell()
# # print "directory is :",ps
# # f.close()
#
# f = open(r"d:\test\test.doc","r")
# str=f.read(30)
# print "the dig is",str
# p=f.tell()
# print "pos is",p
# f.seek(5,0)
# po=f.tell()
# print "present is",po
# f.close()
# f = open(r"d:\test\test.doc","r")
# po=f.tell()
# print "present is",po
# # f.seek(-3,2)
# str = f.readlines()
# print "read dig is",f
import os
print os.name
print os.getcwd()
# print os.listdir("d:\test")
# print os.remove(d:test\test.doc)
# print (os.rmdir(d:test))
# os.mkdir("x/y/z")
print os.path.exists("d:\test\test.doc")
print os.path.isfile("d:\test\test.doc")
print os.path.isdir("d:\test\test.doc")
print os.path.split("d:/test/test.doc")
print os.path.split("/home/rte")
print os.getcwd()
print os.system("echo 'hello world'")
print os.chdir("/test")
print os.path.getsize("d:/test/test.doc")
print os.path.abspath("d:/test/test.doc")
print os.path.join("d:/test/test",'doc')
print os.path.basename("d:/test/test.doc")
print os.path.dirname("d:/test/test.doc")