Writing and reading string from a file

f=open('myfile.txt','w')
f.write('\n Image Processing Research Group \n www.iprg.co.in \n')
f.close()
f=open('myfile.txt','r')
text=f.read()
print text

No comments: