Tried the following code as well but I am getting the same problem
===============================================================================// Displays directory listing using regular expressions.
// {Args: "D.*\.java"}
import java.io.*;
import java.util.*;
public class DirList
{
public static void main(String[] args) throws IOException
{
File f = new File("EURUSD.txt");
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
DataInputStream dis = new DataInputStream(bis);
String record = null;
try
{
while ( (record=dis.readLine()) != null )
{
System.out.println(record);
}
}
catch (IOException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
=======================================================================
Exception in thread "main" java.io.FileNotFoundException: EURUSD.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at DirList.main(DirList.java:14)
=====================================================================
but the file EURUSD.txt is there
