using OutputStreamWriter , removing Createfile method