Question: Im trying to write a program to read a text file through args but when i run it, it always says the file can't be found even though i placed it inside the same folder as the main.java that im running. 
Does anyone know the solution to my problem or a better way of reading a text file?

Answer: 
When you are opening a file with a relative file name in Java (and in general) it opens it relative to the working directory.

you can find the current working directory of your process using 

```
String workindDir = new File(".").getAbsoultePath()

```

Make sure you are running your program from the correct directory (or change the file name so that it will be relative to where you are running it from).
If you're using Eclipse (or a similar IDE), the problem arises from the fact that your program is run from a few directories above where the actual source is located. Try moving your file up a level or two in the project tree.

Check out [this question](https://stackoverflow.com/questions/437382/how-does-relative-file-path-works-in-eclipse) for more detail.