Write Into File
Join the DZone community and get the full member experience.Join For Free
// Creates a file in c:/test/ and writes into that file
File outFile = new File("C:\\test\\[FILENAME]"); outFile.createNewFile(); BufferedWriter out = new BufferedWriter(new FileWriter(outFile)); out.write([WRITING]); out.flush(); out.close();
Opinions expressed by DZone contributors are their own.