I am a long time eclipse user and I have started to play around with IntelliJ IDEA.
So from my understanding, a project in IntelliJ is the same as the Eclipse worksp
u need to specify complete path inside quotes something like this-->
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Application {
public static void main(String[] args) throws FileNotFoundException {
File file = new File("E:\\coding\\ProcessingFiles\\src\\myfile.txt");
Scanner input = new Scanner(file);
while (input.hasNextLine()){
String line = input.nextLine();
System.out.println(line);
}
input.close();
}
}