import java.io.*; public class CaseConverter { public static void main(String[] args){ System.out.println("--- ÅؽºÆ® ÆÄÀÏ »ùÇÃÀº c:\\windows\\system.ini·Î ÇÏ¿´À½.---\n"); BufferedReader br = null; char b[] = new char[50]; try { br = new BufferedReader(new FileReader("c:\\windows\\system.ini"),b.length); int numRead = 1; // ù¹ø° while¹® ¹Ýº¹À» À§ÇÑ °ª while (numRead > 0) { numRead = br.read(b, 0, b.length); if (numRead > 0) { String str = new String(b, 0, numRead); // ¹®ÀÚ ¹è¿­·Î ¹®ÀÚ¿­ °´Ã¼ »ý¼º System.out.print(str.toUpperCase()); // ´ë¹®ÀÚ º¯È¯ ÈÄ Ãâ·Â } } if (br != null) br.close(); } catch (FileNotFoundException e) { System.out.println("ÆÄÀÏÀ» ãÀ» ¼ö ¾ø½À´Ï´Ù."); } catch (IOException e) { System.out.println("ÀÔÃâ·Â ¿À·ù°¡ ¹ß»ýÇß½À´Ï´Ù."); } } }