ÆÄÀÏ i/o¿¡¼­ µµÀúÈ÷ ¿¡·¯°¡ ¾ÈÀâÈ÷³×¿ä.±ä±Þµµ¿ò¿äû


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :±èÈ« 1999³â 10¿ù 12ÀÏ 21:27:07

¿©±â ¿Ã¶ó¿Í ÀÖ´Â ¼Ò½º ¹Þ¾Æ¼­ Çغôµ¥ °è¼Ó ¿¡·¯³ª°Åµç¿ä.
Á» ºÁÁÖ¼¼¿ä.




import java.io.*;
public class ByteReadTest {
public static void main(String[] args) {
byte b1[];
int tmp;
if (args.length > 0) {
try {
File file = new File(args[0]);
b1 = new byte[(int) file.length()];
FileInputStream istream = new FileInputStream(file);
DataInputStream in = new DataInputStream(istream);
for (int i=0; i < b1.length; i++)
b1[i] = (byte) in.read();
in.close();
for (int i=0; i < b1.length; i++)
System.out.print(b1[i] + ", ");
System.out.println();
}
catch (FileNotFoundException ex) {
System.out.println("Warning: The file " + args[0] + " is not found.");
}
catch (IOException ex) {
System.out.println("Warning: IOException");
ex.printStackTrace();
}
}
}
}




¿¡·¯
java.lang.NoClassDefFoundError: ByteReadTest
Exception in thread "main"






´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]