I have StringBuilder sb and I want that string save as *.txt file. Problem is that I get \"filename.txt\" but it is completely empty,
StringBuilder sb
*.txt
\"filename.txt\"
You should use out.close() statement in this program.
out.close()