Hello..

I need help urgently on how to save an output from the command prompt using the BufferedWriter bw= new BufferedWriter(new FileWriter(".text",true));

a little help i much appreciated and Thank you =)
regards
Kakashi

Recommended Answers

All 3 Replies

So you need to get input from a user and store it in a text file?

By the way, ".txt" is the extension typically used for a text file.

I am doing a small program, listing the network interfaces. if the user clicks the "Scan Network Interface"button, the output will be printed out using
"System.out.println(i+"." + "Interface Name's: " + net.getName() + " / " + net.getDisplayName() +"\n");".

therefore i want to save those ouput in the textfile

Java Tutorials - Basic I/O

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.