| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2642 人关注过本帖
标题:error in opening zip file
取消只看楼主 加入收藏
liyyfeng
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2008-10-24
收藏
 问题点数:0 回复次数:0 
error in opening zip file
高手帮忙看看这个是什么问题?谢谢!
import *;
public class AA
{
    public static void main (String args[]) //throws IOException
    {
        String s[] = {"aaa\n","bbb\n","ccc\n"};
        try
        {
            RandomAccessFile rf = new RandomAccessFile ("AA.txt","rw");
            System.out.println (rf.getFilePointer ());
            System.out.println (rf.length());
            rf.seek (rf.length);
            for (int i=0; i < 3; ++i)
            {
                rf.writeBytes (s[i]);
            }
            rf.seek (0);
            String st;
            while ((st=rf.readLine()) != nul)
            {
                System.out.println (st);
            }
            rf.close ();
        }
        catch (FileNotFoundException e)
        {

        }
        catch (IOException g)
        {
        }
    }
}

---------- ᅫ ----------
error: error reading c:\jdk1.5.0\lib\ir.idl; java.util.zip.ZipException: error in opening zip file
AA.java:12: cannot find symbol
symbol  : variable length
location: class
            rf.seek (rf.length);
                                   ^
AA.java:19: cannot find symbol
symbol  : variable nul
location: class AA
            while ((st=rf.readLine()) != nul)
                                                     ^
3 errors

输出完成 (耗时: 0 秒)
搜索更多相关主题的帖子: opening zip file 
2008-10-24 19:04
快速回复:error in opening zip file
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022881 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved