Make sure your file called "temp.txt" is placed directly in the project directory(same place where build and src folders should be), if it is not, use the path to it for accessing it from your class
On Jun 8, 10:18 pm, Prathibha H M <[email protected]> wrote: > Hi All, > When I try to execute the example program in the pdf of the System class > section. (From chapter Tour of java.lang.* & > java.util.* Classes) > > I get the below error: > > *Exception in thread "main" java.io.FileNotFoundException: temp.txt (The > system cannot find the file specified) > at java.io.FileInputStream.open(Native Method)* > > Please let me know.... why I got this error. > > Thank you > > Regards, > Prathibha --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
