再请教一基础问题!!! 假设你的文件名是file1try{ RandomAccessFile x=new RandomAccessFile(file1,rw);}catch(FileNotFoundException e){ File file1=new File(……); RandomAccessFile x1=new RandomAccessFile(file1,rw); x1.create(……); }关于清空你可以先删除文件再新建。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public RandomAccessFile(File file, String mode) throws FileNotFoundException"rw" Open for reading and writing. If the file does not already exist then an attempt will be made to create it. 删除文件也可以用 Runtime 的exec(String command) 怎么在一个java项目中使用自己的包呢? collections.sort按时间排序问题 多个系统访问一个数据库问题 读取视频文件 在线等 急/ JMF问题 用java怎么将XML文档中的任意数据读出来 java打印中的页面设置 中国人的J2EE应用服务器:金蝶Apusic应用服务器V4.0今日发布 在java网络编程中,传递数据时,如何把二维数组从客户端传递到服务器端?请教大家,谢了 那位好心人能把JBuilder5的Serial Number和Primary Key告诉我?谢谢! 新手求助(jdk1.4的问题) 初学者:一个特别简单的问题,急,在线等待
String mode)
throws FileNotFoundException
"rw" Open for reading and writing. If the file does not already exist then an attempt will be made to create it. 删除文件也可以用 Runtime 的exec(String command)