Can you create a file manually in the same directory? Your code
works fine for me. If you are using Windows, try the following in a
command window:
dir > list.txt
If Linux:
ls > list.txt
If the appropriate one works, you have write permission in the
current directory.
I'm also curious about the error message. It includes "Loginfo.out",
but your code shows "date.out". Are you sure you are running the
code you think you are running? Perhaps you have an old version of
SaveDate.class?