Hi!, Can someone please explain to me how i can write the contains of a TextField into a file...
I tried this, but is not working...

try
{
output_stream =new DataOutputStream(new DataOutputStream
(new BufferedOutputStream
(new FileOutputStream("c:\\data.txt"))));
Data=textfield.getText();
output_stream.writeChars(Data);
output_stream.close();
}//try
catch(IOException e){}

I checked the file and its empty

Thanks in advance!