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

📄 right4_5_2.htm

📁 清华大学JAVA教程
💻 HTM
字号:
<html><head><title>JAVA编程语言</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="../../../css/text.css" type="text/css"></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" ><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">  <tr>     <td valign="top">       <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">        <tr>          <td valign="top">             <p class="pt9-black">   FileInputStream fis; <br>                 try{<br>                  fis = new FileInputStream( &quot;text&quot; );<br>                 System.out.print( &quot;content of text is : &quot;);<br>                   int b;<br>                   while( (b=fis.read())!=-1 ) <font color="339900">//顺序读取文件text里的内容并赋值<br>                                  给整型变量b,</font><font color="339900">直到文件结束为止。</font>               <br>                   {              <br>                     System.out.print( (char)b );<br>                   }<br>                 }catch( FileNotFoundException e ){<br>                 System.out.println( e );<br>                 }catch( IOException e ){<br>                 System.out.println( e );<br>                 }</p>            </td>        </tr>      </table>    </td>  </tr></table></body></html>

⌨️ 快捷键说明

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