Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[תÔØ]¹ØÓÚJava IOÁ÷ѧϰ×ܽá

    Ò»¡¢IOÁ÷µÄÈýÖÖ·ÖÀ෽ʽ
    1.°´Á÷µÄ·½Ïò·ÖΪ£ºÊäÈëÁ÷ºÍÊä³öÁ÷
    2.°´Á÷µÄÊý¾Ýµ¥Î»²»Í¬·ÖΪ£º×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
    3.°´Á÷µÄ¹¦Äܲ»Í¬·ÖΪ£º½ÚµãÁ÷ºÍ´¦ÀíÁ÷
    ¶þ¡¢IOÁ÷µÄËÄ´ó³éÏóÀࣺ
    ×Ö·ûÁ÷£ºReader Writer
    ×Ö½ÚÁ÷£ºInputStream£¨¶ÁÊý¾Ý£©
    OutputStream£¨Ð´Êý¾Ý£©
    Èý¡¢InputStreamµÄ»ù±¾·½·¨
    int read£¨£© throws IOException ¶ÁÈ¡Ò»¸ö×Ö½ÚÒÔÕûÊýÐÎʽ·µ»Ø£¬Èç¹û·µ»Ø-1Òѵ½ÊäÈëÁ÷µÄĩβ
    void close£¨£© throws IOException ¹Ø±ÕÁ÷ÊÍ·ÅÄÚ´æ×ÊÔ´
    long skip£¨long n£© throws IOException Ìø¹ýn¸ö×Ö½Ú²»¶Á
    ËÄ¡¢OutputStreamµÄ»ù±¾·½·¨
    void write£¨int b£© throws IOException ÏòÊä³öÁ÷дÈëÒ»¸ö×Ö½ÚÊý¾Ý
    void flush£¨£© throws IOException ½«Êä³öÁ÷Öлº³åµÄÊý¾ÝÈ«²¿Ð´³öµ½Ä¿µÄµØ
    Îå¡¢WriterµÄ»ù±¾·½·¨
    void write£¨int c£© throws IOException ÏòÊä³öÁ÷дÈëÒ»¸ö×Ö·ûÊý¾Ý
    void write£¨String str£© throws IOException½«Ò»¸ö×Ö·û´®ÖеÄ×Ö·ûдÈëµ½Êä³öÁ÷
    void write£¨String str£¬int offset£¬int length£©
    ½«Ò»¸ö×Ö·û´®´Óoffset¿ªÊ¼µÄlength¸ö×Ö·ûдÈëµ½Êä³öÁ÷
    void flush£¨£© throws IOException
    ½«Êä³öÁ÷Öлº³åµÄÊý¾ÝÈ«²¿Ð´³öµ½Ä¿µÄµØ
    Áù¡¢ReaderµÄ»ù±¾·½·¨
    int read£¨£© throws IOException ¶ÁÈ¡Ò»¸ö×Ö·ûÒÔÕûÊýÐÎʽ·µ»Ø£¬Èç¹û·µ»Ø-1Òѵ½ÊäÈëÁ÷µÄĩβ
    Æß¡¢½ÚµãÁ÷ÀàÐÍ
    °Ë¡¢·ÃÎÊÎļþÖ®FileInputStreamºÍFileOutputStream¼Ì³Ð»ùÀàÓÃÓÚÏòÎļþÖÐÊäÈëÊä³ö×Ö½Ú
    ¾Å¡¢·ÃÎÊÎļþÖ®FileReaderºÍFileWriter¼Ì³Ð»ùÀàÓÃÓÚÏòÎļþÖÐÊäÈëÊä³ö×Ö·û
----Êä³öÁ÷ÔÚ¹¹Ô캯ÊýµÚ¶þ¸ö²ÎÊý¿ÉÒÔÉèÖÃtrueÒâÒåΪ¸úÔÚÒÑÓÐÎļþºó½øÐÐÊäÈë
----´ËÀàÁ÷»áÅ׳öFileNotFoundExceptionÐèÒª¶ÔÆä½øÐÐÏÔʾ²¶×½
    Ê®¡¢»º³åÁ÷£º»º³åÁ÷ÒªÌ×½ÓÔÚÏàÓ¦µÄ½ÚµãÁ÷Ö®ÉÏ£¬Ìá¸ßÁ˶ÁдµÄЧÂÊ¡£
    ´Ë´¦ÀíÁ


Ïà¹ØÎĵµ£º

´ÓC++µ½JAVA(1) ÔÚCSDN²©¿ÍÖв¿Êð¼°ÔËÐÐJAVA Applet

write by ¾ÅÌìÑãôá(JTianLing) -- blog.csdn.net/vagrxie ÌÖÂÛÐÂÎÅ×é¼°Îļþ Technorati ±êÇ©: JAVA,JAVA Applet,Applet Tag,Deploy Applet,´ÓC++µ½JAVA   Ç°ÑÔ Ôø¾­£¬ÎÒÓÐÒ»¸öÃÎÏ룬ÄǾÍÊÇÎҵijÌÐòÄÜÈÃÈ˲»ÐèÒªÏÂÔؾÍÄÜͨ¹ýä¯ÀÀÆ÷ÔËÐУ¬¿ÉϧѧϰµÄC,C++µÈ¶¼²»¾ß±¸´ËÄÜÁ¦£¬Ñ§Ï°ÍêPythonºó£¬·¢ÏÖÆäÒ²½ö½öÊÇÒÔ·þÎñÆ÷ ......

javaÅäÖû·¾³±äÁ¿

           unixϵͳ£º´ò¿ªshellÃüÁîÐÐ
                ÊäÈëvi _bash_profile ÐÞ¸Ä
                JA ......

д¸øJAVAÈëÃÅÊé×÷ÕßÃǵÄÒ»·âÐÅ

       ²»ÖªµÀÊÇ·ñÎÒ¿´µÄÊéÌ«ÉÙ£¬ÎÒ¾õµÃÄ¿Ç°¿´µ½µÄËùÓеÄjavaµÄÈëÃŵÄÊ鶼²»ÊʺϳõѧÕß¡£ÕâÖÖ²»Êʺϣ¬²»ÊÇÄÚÈݲ»Êʺϣ¬ÆäʵÄÚÈݽ²µÃ¶¼ºÃ£¬µ«ÊǾÍÊDz»Äܱ»³õѧÕß¿ìËÙÎüÊÕ¡£ÎªÊ²Ã´²»ÊʺÏÄØ£¬ÒòΪûÓж¨ÒåºÃʲôÊdzõѧÕߣ¬¶øÇÒÕâЩ±àÊéµÄÈË£¬¶¼¾­¹ýÕý¹æµÄ½ÌÓý£¬Ã»ÓÐÀí½âʲôÊdzõѧÕߣ¬³õѧÕßµ½µ ......

javaÃæÊÔÌâ¼°´ð°¸£¨»ù´¡Ìâ122µÀ£¬´úÂëÌâ19µÀ£©

 JAVAÏà¹Ø»ù´¡ÖªÊ¶
1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.¼Ì³Ð£º
¼Ì
³ÐÊÇÒ»ÖÖÁª½áÀàµÄ²ã ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ