944,068 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1694
  • Java RSS
Sep 29th, 2004
0

File overiding prevention

Expand Post »
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.
Similar Threads
Reputation Points: 25
Solved Threads: 10
Practically a Master Poster
freesoft_2000 is offline Offline
623 posts
since Jun 2004
Oct 2nd, 2004
0

Re: File overiding prevention

I assume you mean to do this in Java? I don't quite understandy your question. Please explain it again.


Ed

Quote 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.
Reputation Points: 17
Solved Threads: 1
Junior Poster
cosi is offline Offline
153 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Sockets fundamentals
Next Thread in Java Forum Timeline: RobustInput





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC