file not found exception
Hi to every one,
I wrote the following program in eclipse environment.the programe has to read from a file called 搊ut.txt?and print it on the screen.but it is giving the following error.if it is not finding the file. then where should I put the file 搊ut.txt?in Eclipse environment.iam also pasting the folder structure.
Exception in thread "main" java.io.FileNotFoundException: out (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at inputoutput.Printing.printing(inputoutput.java:22)
at inputoutput.inputoutput.main(inputoutput.java:46)
the program is
package inputoutput;
import java.io.*;
class Printing implements Runnable{
Thread t;
public void run(){
}
public void printing()throws IOException,FileNotFoundException {
try{
t=new Thread();
t.start();
FileInputStream fileinputstream = new FileInputStream("out");
int value = fileinputstream.read();
while(value!=-1){
System.out.print((char)value);
Thread.sleep(50);
value=fileinputstream.read();
}
fileinputstream.close();
}
catch(InterruptedException e){
System.out.println(e);
}
}
}
public class inputoutput {
/**
* @param args
*/
public static void main(String[] args) throws IOException {
Printing b=new Printing();
b.printing();
}
}

