JavaScript Required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
open a text file
String outputFile = "results.txt";
PrintWriter fileWriter = new PrintWriter(outputFile);
write next value from the array to the file(nest within a loop)
fileWriter.print(dataValues[i]);
if (i < subject.length-1) {
fileWriter.print("\n");
}
close the file
fileWriter.close();
additional code needed for working with file in Java
import java.util.*;
import java.io.*;
dealing with file handling errors
throws IOException