The Artima Developer Community
Sponsored Link

Java Answers Forum
Help with Data exchange

1 reply on 1 page. Most recent reply: Jul 12, 2002 10:44 AM by Stefan Parijs

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
mansoor

Posts: 7
Nickname: mansoor
Registered: Jul, 2002

Help with Data exchange Posted: Jul 11, 2002 9:38 PM
Reply to this message Reply
Advertisement
Hi,
I need some help with exchanging. How can i exchange data with the operating system on which my program in running. Let say my program runs an executable applicatin from withing, which in return ask for some parameters. How can i send information and get information back?

my second question is how can i save text writen on a JTextArea in a file?

Thanks in advance
mansoor


Stefan Parijs

Posts: 16
Nickname: stefan
Registered: May, 2002

Re: Help with Data exchange Posted: Jul 12, 2002 10:44 AM
Reply to this message Reply
Hello,
The answer of your second question is very simple.
for example Your Jtextarea calls jtext.
So You have to do:

try
{

BufferedWriter out
= new BufferedWriter(new OutputStreamWriter(text.txt));
out.write(jtext.getText());



}// --> try

Now you only have to catch the right exceptions (for example IOException)

Your first problem, I don't understand, what you mean, so, ....

Best regards
Stefan Parijs

Flat View: This topic has 1 reply on 1 page
Topic: Want to get services details from all clients Previous Topic   Next Topic Topic: Jrun 4 & unpacked app

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use