File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ERROR - "system cannot find the file specified"

 
Peter Kolozvary
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure why I'm getting this error.

The compile file option produces no errors, however when I got to run the program, it spits out the error:"system cannot find the file specified".

I've even moved the file around and the system still can't find it. Any thoughts?

Here is my code along with the error message:

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Peter Kolozvary:
...
// Open the Transactions file.
File file = new File("D:/Trasactions.txt");
...

Do you see a typo?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic