import java.io.*;

public class TestFileOutput {
  
  
  
  public static void main( String[] args) throws java.io.IOException {
    System.out.println("Started!");
  
    
    FileWriter fw = new FileWriter( "nameOfFile.txt");
    
    BufferedWriter bw = new BufferedWriter( fw  );
    
    bw.write("A test String!");
    
    bw.close();
    
    System.out.println("Finished!");
    
  }
  
  
}