下面是用 RandomAccessFile oureFile; Strings="information to Append\n mon!\n"; oureFile=newRandomAccessFile oureFile("phone.

admin2009-02-15  20

问题 下面是用
   RandomAccessFile oureFile;
   Strings="information to Append\n mon!\n";
   oureFile=newRandomAccessFile oureFile("phone.number,numbers","rw");
   模式打开访问oureFile文件,并在文件尾加信息s的addFile的源程序。请在下划线处填
   上适当的语句将程序补充完整。
   import java.io.*;
   Class addFile
   {
   public static void main (String args[])throws IOException
   {
   RandomAccessFile oureFile;
   _____________
   =oureFile=new RandomAccessFile oureFile("phone.number,numbers","rw");
   oureFile.seek(oureFile.length());
   oureFile.writebytes(s);
   oureFile.close();
  }

选项

答案String="information to Append\n mon !\n";

解析
转载请注明原文地址:https://kaotiyun.com/show/BCnp777K
0

最新回复(0)