• Post Reply Bookmark Topic Watch Topic
  • New Topic

can we rename,delete files which are stored on the server?  RSS feed

 
kashif iftikhar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everyone
the java.io.File class provide delete() and renameTo() methods to delete or rename files.
i use these funtions and they are working on my PC.
i want to know that does these funtions can also be used for files placed on the server.
if yes then what String to pass in File constructor.
File file = new File(???)
 
Red Anil
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...u need not pass any special URL in ur File constructor as ur application will be residing on the server provided u have access permissions...it would work fine providied u have the same directory structure at both places...so keep the same relative URL which u r using...hope that i understood ur question...bye
[ March 02, 2002: Message edited by: Red Anil ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!