import java.io.*; class TransStream11{ public static void main(String[] args)throws IOException { BufferedReader bufr = new BufferedReader(new InputStreamReader(new FileInputStream("bufw.txt"))); BufferedWriter bufw = new BufferedWriter(new OutputStreamWriter(System.out)); String line = null; while((line = bufr.readLine())!=null){ if("over".equals(line)) break; bufw.write(line.toUpperCase()); bufw.newLine(); bufw.flush(); } } }
|