mcqert.blogg.se

Intellij find file in project directory
Intellij find file in project directory




intellij find file in project directory intellij find file in project directory

Scanner diskScanner = new Scanner(new File("input. Hello Olly, Is there a way of revealing the file you're currently editing in the Project view I generally open files using Cmd-T but quite often I'd like to quickly show the folder in which this file resides in the Project view. If there is more than 1 file with the name, you will see the directory of the file for each entry to help you make the choice. I also used Scanner instead of BufferedReader. 7 Answers Sorted by: 109 cmd + shift + o ( cmd + shift + n in older versions) leads to the file open dialog (on mac). I solved the issue by moving my "input.txt" file out or src folder and into the main project's folder. Java.io.FileNotFoundException: input.txt (The system cannot find the file specified)Īt java.io.FileInputStream.open0(Native Method)Īt java.io.FileInputStream.open(FileInputStream.java:195)Īt java.io.FileInputStream.(FileInputStream.java:138)Īt java.io.FileReader.(FileReader.java:72)Īt LetterGrader.main(LetterGrader.java:23)Īt 0(Native Method)Īt (NativeMethodAccessorImpl.java:62)Īt (DelegatingMethodAccessorImpl.java:43)Īt .invoke(Method.java:497)Īt .(AppMain.java:140)Īny help would be greatly appreciated! When I find a solution, I will respond back, too. This is the error message that showed up.

intellij find file in project directory

("Current sys dir: " + curDir) īufferedReader br = new BufferedReader(new FileReader(inputData)) It has additional settings: File - Settings - (Project Settings) Statistic. Launch it via new button that is installed in lower left corner of IntelliJ IDEA window. String curDir = new File(".").getAbsolutePath() The Statistic plugin works with IntelliJ IDEA 12, and even shows counts and percentages for comment lines and blank lines vs. This is my code: import java.io.BufferedReader I've scoured Stack Overflow looking for an answer, read every question I've come across, but no one offered a concrete solution to the issue. I triple-checked to make sure that the path is correct. However, when I ran my codes, I get a "FileNotFoundException" message. My objective is to read a text file on IntelliJ.






Intellij find file in project directory