🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #21139

���ʣ�����ж�һ���ļ���ϵͳ���Ƿ��Ѿ����ڣ�

#21139
From: havy
Date: Thu, 11 Dec 2003 05:40
20 lines
1505 bytes
   �������ļ��ύ֮ǰҪ�ж� �Ƿ��Ѿ�����ͬ���ļ�
 ���� File.exists()
  ���ж�ǰ���� ���������File
  �Ǿ͵��Ը���һ���ļ�ʵ��
  ������Ļ�����ÿ���ж϶���������Ϊ true ��
  ���ָ���δ����أ���

  ����ĺ���������޸ģ� лл

  public boolean isExists(String fileName){
    try{
      File thisFile =new File(fileName);
      return thisFile.exists();
    }catch(Exception e){
      e.printStackTrace();
      return false;
    }
  }
--
�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: socks.fudan.edu.cn]
Technical Details
Message-ID: <49bGHX$8yP@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,2f8d09574cd43f3c,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-10 21:45:05 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU
From: havy.bbs@bbs.sjtu.edu.cn (havy)
Newsgroups: cn.bbs.comp.lang.java
Subject: ���ʣ�����ж�һ���ļ���ϵͳ���Ƿ��Ѿ����ڣ�
Date: 11 Dec 2003 05:40:43 GMT
Organization: ��ˮ˼Դ
Message-ID: <49bGHX$8yP@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1071121233.A
Lines: 20