2 things that can be wrong:
1. dataDisplay.getText(); does not return a readable String. I would check if your data variable holds some text that you can read
2. Notepad doesn't understand that your file is a text file. Does the file have .txt extension? Do you have the same problem in WordPad?

0

chandanchoubeyAuthor Commented: 2009-04-29

The program is actually a calculator, all numbers which are added, subtracted, multiplied or divided are displayed in a text area (dataDisplay). I am saving all numbers using FileWriter. When I open the saved file in notepad it comes something like following
¬í t +6
*9
/85
*85
-9
/9
*87