Never do this:
catch(IOException e){}
catch(IOException e){} }
You simply must handle IO exceptions; at least print a message to the log or system out so you know something bad happened.
Yes i got it what you want to say Sir
i will always include a System.out.println(e) statement in catch block to through the exception.
But please tell me is there any bug in my code
i am not getting why it is not printing the text which i am writing to the file Shree.txt.