Worked for me when I used the full path name of the file, as follows:
Code:
myFile = new FileInputStream("C:\\Eclipse\\Cristina\\workspace\\CLesson16\\src\\abc.dat");
Also, you can create the text file in Eclipse as well, choosing New->File from the menu.
You can find in the book more details regarding the default current directory and how to find it out programmatically.