File overiding prevention

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2004
Posts: 609
Reputation: freesoft_2000 is an unknown quantity at this point 
Solved Threads: 8
freesoft_2000 freesoft_2000 is offline Offline
Practically a Master Poster

File overiding prevention

 
0
  #1
Sep 29th, 2004
Hi everyone,
I am doing a simple compression program in which the application uncompresses the file to a selected folder. The thing is that the file that is being compressed already exists in that folder. What i need is someone to show me a way in whic the file is still extracted to that same folder but instead of using the file's original name which is say cars.txt
the program now when extracting that program calls the same file with the name copy_1_of_cars.txt thus in the folder thaere should be two files named
cars.txt and copy_1_of_cars.txt without the second file overing the first file but justs renames itself. Can someone show me a way how this can be done or e-mail me a way of how this can be done.

Thank You

Yours Sincerely

Richard West
Last edited by alc6379; Oct 2nd, 2004 at 5:13 am.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 153
Reputation: cosi is an unknown quantity at this point 
Solved Threads: 1
cosi's Avatar
cosi cosi is offline Offline
Junior Poster

Re: File overiding prevention

 
0
  #2
Oct 2nd, 2004
I assume you mean to do this in Java? I don't quite understandy your question. Please explain it again.


Ed

Originally Posted by freesoft_2000
Hi everyone,
I am doing a simple compression program in which the application uncompresses the file to a selected folder. The thing is that the file that is being compressed already exists in that folder. What i need is someone to show me a way in whic the file is still extracted to that same folder but instead of using the file's original name which is say cars.txt
the program now when extracting that program calls the same file with the name copy_1_of_cars.txt thus in the folder thaere should be two files named
cars.txt and copy_1_of_cars.txt without the second file overing the first file but justs renames itself. Can someone show me a way how this can be done or e-mail me a way of how this can be done.

Thank You

Yours Sincerely

Richard West
Last edited by alc6379; Oct 2nd, 2004 at 5:13 am.
In a world without walls or fences,
What use are Windows and Gates.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC