How is possible to write a string in a file .txt exactly how it is?
For example, I want to write exactly the following string :
Hello, I'm an user of stackoverflow
and I'm asking a question
I tried with BufferedWriter, PrintWriter, PrintStream, but the result is always the same, so in my file .txt the string appears like this :
Hello, I'm an user of stackoverflow and I'm asking a question
It is necessary to analyze each character or is there an easier way?