Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.FileWriter;

public class Main {
    public static void main(String[] args) throws Exception {
        FileWriter fileWriter = new FileWriter("c:/abc.txt", true);
        fileWriter.append("java2s.com");
        fileWriter.close();

    }
}