|
-
Dec 3rd, 2000, 03:50 PM
#1
Thread Starter
Addicted Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|