Java - Write data to a file
Java - Write data to a file
CODE
import java.io.*;
public class Main
{
public static void main(String[] args) throws IOException {
FileWriter fw = new FileWriter("output.txt");
fw.write("This is a sample data.");
fw.close();
}
}
Comments
Post a Comment