I have declared the files in the same folder,yet it gives me a "File NotFound Exeption".The file name is correct .I get the same error if i try to use other methods of accessing the file information.I am not sure why.Is there an Logical mistake.I learned it from the site <http://www.vogella.com/articles/JavaIO/article.html>>

```
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class FilesC {
    public static void main(String[] args)
    {
        String returnValue = "";
          FileReader file = null;
          String fileName = "test.txt";
          try {
            file = new FileReader(fileName);
            BufferedReader reader = new BufferedReader(file);
            String line = "";
            while ((line = reader.readLine()) != null) {
              returnValue += line + "\n";
            }
          } catch (Exception e) {
              throw new RuntimeException(e);
          } finally {
            if (file != null) {
              try {
                file.close();
              } catch (IOException e) {
                // Ignore issues during closing 
              }
            }
          }
    }
}

```

Thanks it worked but one more thing >I have only one line in my file .When i do the following thing to my code

```
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class FilesC {
    public static void main(String[] args)
    {
        String returnValue = "";
          FileReader file = null;
          String fileName = "C:\\Users\\KingKong\\Desktop\\WorkSpace\\Victory\\src\\test.txt";
            String line = "";

          try {
            file = new FileReader(fileName);
            BufferedReader reader = new BufferedReader(file);
            while ((line = reader.readLine()) != null) {
              returnValue += line + "\n";

            }
          } catch (Exception e) {
              throw new RuntimeException(e);
          } finally {
            if (file != null) {
              try {
                file.close();
              } catch (IOException e) {
                // Ignore issues during closing 
              }
            }
          }
          System.out.println(line);
          System.out.println(returnValue);

    }
}

```

It gives me output:

```
null
myLine

```

How is this possible.If there is only one line doesnt the line and returnValue must have he same value?