package br.com.alura.java.io.test;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.Writer;
public class TesteEscrita {
public static void main(String[] args1) throws IOException {
//Fluxo de entrada com arquivo
OutputStream opt = new FileOutputStream("poema2.txt");
Writer osw = new OutputStreamWriter(opt);
BufferedWriter bw = new BufferedWriter(osw);
bw.write("Concordo plenamente");
bw.write("Concordo plenamente 2");
bw.close();
}
}