Writing data on a .txt file

<>

This question already has an answer here:

Answers


you have to close your BufferedWriter, using BufferedWriter#close()

o.close();

For ease, also use JTextComponent.write(java.io.Writer).

also if i want to save those values in a user specified .txt file how can it be done?

Offer the user a JFileChooser as seen in this example.

Establish the FileWriter from the file returned (after checking it ends with .txt).


Need Your Help

Information on Natural Language Processing

curl nlp domparser

I need some explanation about NLP. Could using PHP cURL and DOM Parser to extract data from unstructured html content to form a structured content and then save the content into a database be regar...

How to create a function for adding records to database

c#

I want to separate the database logic from the application one, so I wrote a function for adding records:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.