⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 拷贝文件的源代码.mht

📁 JAVA核心源代码及算法,适合入门的初学者,可以让你快的入门
💻 MHT
📖 第 1 页 / 共 5 页
字号:
                  href=3D"http://www.pconline.com.cn/market/nj/" =
target=3D_top><FONT=20
                  color=3D#000000>=C4=CF=BE=A9</FONT></A> <A=20
                  href=3D"http://www.pconline.com.cn/market/hk/" =
target=3D_top><FONT=20
                  =
color=3D#000000>=CF=E3=B8=DB</FONT></A></TD></TR></TBODY></TABLE></TD>
          <TD width=3D7 height=3D5></TD>
          <TD align=3Dright width=3D1 bgColor=3D#ffdda2=20
      height=3D18></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD vAlign=3Dbottom width=3D185 bgColor=3D#ffa200>
      <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" border=3D0>
        <TBODY>
        <TR>
          <TD align=3Dmiddle height=3D33><A=20
            =
href=3D"http://adv.pconline.com.cn/adpuba/click?id=3Dpc.rjzx.shouye.dht1.=
&amp;media=3Djs&amp;pid=3Dcs.pconline.rjzx.dht1.&amp;idex=3Dx016102429"><=
IMG=20
            height=3D20=20
            =
src=3D"http://adv.pconline.com.cn/adpuba/show?id=3Dpc.rjzx.shouye.dht1.&a=
mp;pid=3Dcs.pconline.rjzx.dht1.&amp;idex=3Dx016102429"=20
            width=3D151 =
border=3D0></A></TD></TR></TBODY></TABLE><BR><IMG height=3D1=20
      src=3D"http://www.pconline.com.cn/images/blank.gif" width=3D7><IMG =
height=3D18=20
      src=3D"http://www.pconline.com.cn/images/menu_pcedu.gif"=20
  width=3D171></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D760 bgColor=3D#ffffff =
border=3D0>
  <TBODY>
  <TR>
    <TD class=3Dbodyleft width=3D7 bgColor=3D#ffa200><IMG height=3D1=20
      src=3D"http://www.pconline.com.cn/images/blank.gif" =
width=3D7></TD>
    <TD style=3D"BORDER-TOP: #000000 1px solid" width=3D743 =
height=3D100><SPAN=20
      id=3Dad_743_art style=3D"HEIGHT: 100px">=A1=A1</SPAN></TD>
    <TD class=3Dbodyright width=3D6 bgColor=3D#ffa200><IMG height=3D1=20
      src=3D"http://www.pconline.com.cn/images/blank.gif"=20
width=3D6></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D760 bgColor=3D#ffffff =
border=3D0>
  <TBODY>
  <TR>
    <TD class=3Dbodyleft width=3D7 bgColor=3D#ffa200><IMG height=3D1=20
      src=3D"http://www.pconline.com.cn/images/blank.gif" =
width=3D7></TD>
    <TD style=3D"BORDER-TOP: #000000 1px solid" width=3D743><SPAN=20
    id=3Dmenu>-</SPAN></TD>
    <TD class=3Dbodyright width=3D6 bgColor=3D#ffa200><IMG height=3D1=20
      src=3D"http://www.pconline.com.cn/images/blank.gif"=20
width=3D6></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D760 bgColor=3D#ffffff =
border=3D0>
  <TBODY>
  <TR>
    <TD class=3Dbodyleft width=3D7 bgColor=3D#ffa200><IMG height=3D1=20
      src=3D"http://www.pconline.com.cn/images/blank.gif" =
width=3D7></TD>
    <TD vAlign=3Dtop>
      <TABLE cellSpacing=3D0 cellPadding=3D5 width=3D"100%" border=3D0>
        <TBODY>
        <TR vAlign=3Dtop>
          <TD class=3Darticle>
            <TABLE height=3D22 cellSpacing=3D0 cellPadding=3D2 =
width=3D"98%" border=3D0>
              <TBODY>
              <TR>
                <TD>=C4=FA=CF=D6=D4=DA=B5=C4=CE=BB=D6=C3=A3=BA<A=20
                  =
href=3D"http://www.pconline.com.cn/pcedu/index.html">=C8=ED=BC=FE=D7=CA=D1=
=B6</A>&nbsp;&gt;&nbsp;<A=20
                  =
href=3D"http://www.pconline.com.cn/pcedu/empolder/index.html">=BF=AA=B7=A2=
=CC=D8=C7=F8</A>&nbsp;&gt;&nbsp;<A=20
                  =
href=3D"http://www.pconline.com.cn/pcedu/empolder/gj/index.html">=BF=AA=B7=
=A2=D3=EF=D1=D4</A>&nbsp;&gt;&nbsp;<A=20
                  =
href=3D"http://www.pconline.com.cn/pcedu/empolder/gj/java/index.html">Jav=
a</A></TD></TR></TBODY></TABLE>
            <TABLE cellSpacing=3D0 cellPadding=3D6 width=3D"99%"=20
            background=3Dhttp://www.pconline.com.cn/images/point.gif =
border=3D0>
              <TBODY>
              <TR>
                <TD align=3Dmiddle></TD>
                <TD align=3Dmiddle><FONT color=3D#339900=20
                  =
size=3D3><B>=BF=BD=B1=B4=CE=C4=BC=FE=B5=C4=D4=B4=B4=FA=C2=EB</B></FONT><B=
R></TD>
                <TD class=3Dsfont align=3Dright width=3D126 rowSpan=3D2>
                  =
<P>=B3=F6=B4=A6=A3=BAMatrix.org.cn<BR>=D4=F0=C8=CE=B1=E0=BC=AD=A3=BAsdq</=
P></TD></TR>
              <TR>
                <TD width=3D96>[04-4-15 10:22] </TD>
                <TD align=3Dmiddle>=D7=F7=D5=DF=A3=BAyunfengsheng =
</TD></TR></TBODY></TABLE>
            <DIV align=3Dcenter><SPAN id=3Dzl_550>-</SPAN>=20
            <TABLE=20
            style=3D"BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: =
#cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; BORDER-BOTTOM: =
#cccccc 1px solid"=20
            cellSpacing=3D0 width=3D380 bgColor=3D#f7f8f9 border=3D0>
              <TBODY>
              <TR>
                <TD>
                  <DIV id=3Dicefable1 style=3D"WIDTH: 500px">
                  <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D380 =
border=3D0>
                    <TBODY>
                    <TR>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/pingce/0403/335520.html"=20
                        =
target=3D_blank>ACDSee=D0=C2=B0=E6=D5=E6=B5=C4=B1=C8=BE=C9=B0=E6=BA=C3=D3=
=C3=C2=F0?</A></TD>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/pingce/0403/333906.html"=20
                        =
target=3D_blank>=CA=D7=C6=D8=C8=CB=C6=F8=B4=F3=D7=F7QQ =
2004=C4=DA=C4=BB[=B6=E0=CD=BC]</A></TD></TR>
                    <TR>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/pingce/0403/338521.html"=20
                        =
target=3D_blank>=CF=C2=D4=D8=C8=ED=BC=FE=D5=F9=B0=D4=BE=F6=D5=BD:=C1=F7=C3=
=BD=CC=E5=D6=AE=B5=DF</A></TD>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/tuijian/network/ftp/0403/336365.=
html"=20
                        =
target=3D_blank>=BF=B4=BE=A1=CD=F8=C2=E7=C3=C0=C5=AE,=CD=BC=C6=AC=CF=C2=D4=
=D8=D2=BB=B2=BD=B5=BD=CE=BB</A></TD></TR>
                    <TR>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/soft/lan/wireless/0404/349619.ht=
ml"=20
                        =
target=3D_blank>=BE=D3=BC=D2,=C2=C3=D3=CE,=BF=A7=B7=C8=CC=FC,=CE=DE=CF=DF=
=CD=EA=C8=AB=CC=E5=D1=E9</A></TD>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/soft/wl/icq/msn/0404/348679.html=
"=20
                        =
target=3D_blank>=B4=F3=B1=E4=C9=ED,=CB=AD=CB=B5MSN =
Msg=BB=BB=B7=F4=B2=BB=C4=DCDIY?</A></TD></TR>
                    <TR>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/soft/wl/icq/msn/0404/350007.html=
"=20
                        =
target=3D_blank>=B0=E7=BF=E1=C8=FD=D5=D0=A3=BA=C8=C3=C4=E3=B5=C4MSN=D2=B2=
"=B7=E8"=C6=F0=C0=B4</A></TD>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"ttp://www.pconline.com.cn/pcedu/teach/net/surf/0404/350040.html" =

                        =
target=3D_blank>=CB=AD=CB=B5=C3=E2=B7=D1=CF=FB=CA=A7!=C3=E2=B7=D1=B6=CC=D0=
=C5=B4=F3=CB=D1=B2=E9</A></TD></TR>
                    <TR>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/sj/pm/photoshop/0404/348180.html=
"=20
                        =
target=3D_blank>Photoshop=D6=C6=D7=F7=B1=C6=D5=E6=B9=C5=CA=E9=BC=BC=C7=C9=
</A></TD>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/sj/wz/flash/0404/347824.html"=20
                        =
target=3D_blank>=D3=C3Flash=BA=CDXML=B9=B9=BD=A8=C2=DB=CC=B3(=CF=C2)</A><=
/TD></TR>
                    <TR>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/sj/famous/fif/0403/330374.html" =

                        =
target=3D_blank>=CA=D3=C6=B5=CA=D6=B0=D1=CA=D6=BD=CC=C4=E3=D1=A7Photoshop=
</A></TD>
                      <TD height=3D18>=A1=A4<A=20
                        =
href=3D"http://www.pconline.com.cn/pcedu/sj/famous/fif/0403/337045.html" =

                        =
target=3D_blank>=CA=D3=C6=B5=BD=CC=B3=CC:Photoshop=D7=F6=CC=D8=D0=A7</A><=
/TD></TR></TBODY></TABLE></DIV>
                  <DIV id=3Dicefable2=20
                  style=3D"Z-INDEX: 1; VISIBILITY: hidden; POSITION: =
absolute"></DIV></TD></TR></TBODY></TABLE>
            <SCRIPT>=0A=
marqueesHeight=3D18;=0A=
stopscroll=3Dfalse;=0A=
icefable1.scrollTop=3D0;=0A=
=0A=
with(icefable1){=0A=
  style.width=3D0;=0A=
  style.height=3DmarqueesHeight;=0A=
  style.overflowX=3D"visible";=0A=
  style.overflowY=3D"hidden";=0A=
  noWrap=3Dtrue;=0A=
  onmouseover=3Dnew Function("stopscroll=3Dtrue");=0A=
  onmouseout=3Dnew Function("stopscroll=3Dfalse");=0A=
}=0A=
=0A=
preTop=3D0; currentTop=3D0; stoptime=3D0;=0A=
=0A=
function init_srolltext(){=0A=
  icefable2.innerHTML=3D"";=0A=
  icefable2.innerHTML+=3Dicefable1.innerHTML;    =0A=
  icefable1.innerHTML=3Dicefable2.innerHTML+icefable2.innerHTML;=0A=
  setInterval("scrollUp()",50);=0A=
}=0A=
function scrollUp(){=0A=
  if(stopscroll=3D=3Dtrue) return;=0A=
  currentTop+=3D1;=0A=
  if(currentTop=3D=3D19)=0A=
  {=0A=
  	stoptime+=3D1;=0A=
  	currentTop-=3D1;=0A=
  	if(stoptime=3D=3D50) =0A=
  	{=0A=
  		currentTop=3D0;=0A=
  		stoptime=3D0;=0A=
  	}=0A=
  }=0A=
  else {  	=0A=
	  preTop=3Dicefable1.scrollTop;=0A=
	  icefable1.scrollTop+=3D1;=0A=
	  if(preTop=3D=3Dicefable1.scrollTop){=0A=
	    icefable1.scrollTop=3Dicefable2.offsetHeight-marqueesHeight;=0A=
	    icefable1.scrollTop+=3D1;=0A=
	  }=0A=
  }=0A=
=0A=
}=0A=
init_srolltext();=0A=
</SCRIPT>
            </DIV>
            <P><FONT=20
            =
face=3D=CB=CE=CC=E5>=A1=A1=A1=A1//-----------Class&nbsp;CopyFile&nbsp;Beg=
in---------<BR>=A1=A1=A1=A1</FONT><FONT=20
            =
face=3D=CB=CE=CC=E5>//Class&nbsp;CopyFile<BR>=A1=A1=A1=A1//CopyRight:Writ=
ed&nbsp;By&nbsp;Yun-Fengsheng&nbsp;<BR>=A1=A1=A1=A1//Last&nbsp;modify&nbs=
p;time:2001-11-16<BR>=A1=A1=A1=A1//Method:&nbsp;public&nbsp;boolean&nbsp;=
copy(String&nbsp;from_filename,String&nbsp;to_filename)</FONT></P>
            <P><IFRAME id=3Dad_top name=3Dad_top align=3Dleft =
marginWidth=3D0=20
            marginHeight=3D0=20
            =
src=3D"http://adv.pconline.com.cn/adpuba/show?id=3Dpc.rjzx.kaifa.wenzhang=
.hzh.&amp;media=3Dhtml&amp;pid=3Dcs.pconline.rjzx.hzh."=20
            frameBorder=3D0 width=3D320 scrolling=3Dno =
height=3D280></IFRAME><FONT=20
            =
face=3D=CB=CE=CC=E5>=A1=A1=A1=A1class&nbsp;CopyFile<BR>=A1=A1=A1=A1{<BR>&=
nbsp;=A1=A1=A1=A1public&nbsp;boolean&nbsp;copy(String&nbsp;file1,String&n=
bsp;file2)<BR>&nbsp;=A1=A1=A1=A1{<BR>&nbsp;&nbsp;=A1=A1=A1=A1try&nbsp;//m=
ust&nbsp;try&nbsp;and&nbsp;catch,otherwide&nbsp;will&nbsp;compile&nbsp;er=
ror<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=A1=A1=A1=A1{<BR>&nbsp;&nbsp;=A1=A1=A1=
=A1//instance&nbsp;the&nbsp;File&nbsp;as&nbsp;file_in&nbsp;and&nbsp;file_=
out<BR>&nbsp;&nbsp;=A1=A1=A1=A1java.io.File&nbsp;file_in=3Dnew&nbsp;java.=
io.File(file1);<BR>&nbsp;&nbsp;=A1=A1=A1=A1java.io.File&nbsp;file_out=3Dn=
ew&nbsp;java.io.File(file2);<BR>&nbsp;=A1=A1=A1=A1&nbsp;FileInputStream&n=
bsp;in1=3Dnew&nbsp;FileInputStream(file_in);<BR>&nbsp;&nbsp;&nbsp;&nbsp;=A1=
=A1=A1=A1&nbsp;&nbsp;&nbsp;&nbsp;FileOutputStream&nbsp;out1=3Dnew&nbsp;Fi=
leOutputStream(file_out);<BR>=A1=A1=A1=A1&nbsp;&nbsp;byte[]&nbsp;bytes=3D=
new&nbsp;byte[1024];<BR>=A1=A1=A1=A1&nbsp;&nbsp;int&nbsp;c;<BR>&nbsp;&nbs=
p;=A1=A1=A1=A1while((c=3Din1.read(bytes))!=3D-1)<BR>&nbsp;&nbsp;&nbsp;=A1=
=A1=A1=A1out1.write(bytes,0,c);<BR>=A1=A1=A1=A1&nbsp;&nbsp;in1.close();<B=
R>&nbsp;&nbsp;=A1=A1=A1=A1out1.close();<BR>&nbsp;&nbsp;=A1=A1=A1=A1return=
(true);&nbsp;&nbsp;//if&nbsp;success&nbsp;then&nbsp;return&nbsp;true<BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=A1=A1=A1=A1&nbsp;&nbsp;}<BR><BR>&nbsp=
;&nbsp;&nbsp;&nbsp;=A1=A1=A1=A1catch(Exception&nbsp;e)<BR>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;=A1=A1=A1=A1{&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;=A1=A1=A1=A1System.out.println("E

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -