• Post Reply Bookmark Topic Watch Topic
  • New Topic

Altering File Permissions

 
Suprakash Das
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have written a program that outputs some text to a file. I'm using FileWriter to this end. Now while instantiating a new FileWriter object I catch a FileNotFoundException. My question is: if the file I'm trying to write to is read-only , can I change the permission on the file to read-write through the Java application.
Thanks,
Das
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!