Java, reading a file from current directory? January 14, 2023 by Tarik Try System.getProperty("user.dir") It returns the current working directory.