Posted By

joaocosta on 09/22/07


Tagged

javafileio


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

lfmingo
zdroshnya
rtipton


Check if a file exists in Java


 / Published in: Java
 

  1. File f = new File(args[0]);
  2. if (f.exists()) {
  3. } else {
  4. }

Report this snippet  

You need to login to post a comment.