Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Brooklyn Smith   on Oct 26 In Java Category.

  
Question Answered By: Laurel Collins   on Oct 26

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?

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Question about Java File Or get search suggestion and latest updates.


Tagged: