Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How Don't Display Message : Is It Ok to Write Local Files ?

  Asked By: Sean    Date: Sep 18    Category: Java    Views: 746
  

when Writing To File In Netbeans . This Message Appear .

My Writing Code :

OutputConnection connection = (OutputConnection)
Connector.open("file:////1.txt", Connector.WRITE );
OutputStream out = connection.openOutputStream();
PrintStream output = new PrintStream( out );
output.println( "This is a test." );
out.close();
connection.close();
Alert alert = new Alert("Completed", "Data Written", null, null);
alert.setTimeout(Alert.FOREVER);
alert.setType(AlertType.ERROR);
display.setCurrent(alert);

Share: 

 

No Answers Found. Be the First, To Post Answer.

 




Tagged: