• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(???)
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic