Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

public class Main {

    public static void main(String[] args) throws Exception {
        BufferedOutputStream bufferedOutput = new BufferedOutputStream(new FileOutputStream("yourFile.txt"));
        bufferedOutput.write("Line one".getBytes());
        bufferedOutput.write("\n".getBytes());

        bufferedOutput.write(65);
        bufferedOutput.close();
    }
}