import java.io.FileReader;
import java.io.BufferedReader;
import java.io.FileWriter;
import java.io.PrintWriter;
public class FileReadWrite {
public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new FileReader(“input.txt”));
PrintWriter pw = new PrintWriter(new FileWriter(“output.txt”))) {
String text;
while ((text = br.readLine()) != null) {
pw.println(text.toLowerCase());
}
} catch (Exception e) {
e.printStackTrace();
}
}
}