Java tutorial
//package com.java2s; import java.io.File; public class Main { public static boolean CustomerFileExists() { File f = new File("."); String FilePath = f.getAbsoluteFile().getParent() + "\\Customers.xml"; f = new File(FilePath); return f.exists(); } }