| | |
File overiding prevention
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2004
Posts: 609
Reputation:
Solved Threads: 8
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
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.
I assume you mean to do this in Java? I don't quite understandy your question. Please explain it again.
Ed
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.
![]() |
Similar Threads
- Red X on C: and POS.file night mare (Viruses, Spyware and other Nasties)
- News Story: Microsoft Publishes File Format Specs, 'Open Connections' (Windows Software)
- Hijackthis log file: Very Slow IE Explorer startup.. (Viruses, Spyware and other Nasties)
- News Story: Court Ruling Keeps File-Sharing Apps Alive (Upcoming News Stories)
- promblem with a dll file and explorer.exe (Viruses, Spyware and other Nasties)
- data execution prevention 2 (Viruses, Spyware and other Nasties)
- About;Blank Please Help, Hijack Log File (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: Sockets fundamentals
- Next Thread: Suggest Database for Java Project
| Thread Tools | Search this Thread |
Tag cloud for Java
6 911 android api apple applet application arguments array arrays automation binary bluetooth byte chat class classes client code component database dice draw eclipse educational error event exception file formatingtextintooltipjava fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html hyper ide ideas image ingres input integer internet ip j2me java javaprojects jmf jni jpanel jtextfield julia linux list loop map method methods mobile netbeans newbie number object oracle pong print printf problem program programming project recursion reflection ria rsa scanner screen server set size sms socket sort sql string swing test threads time tree ui unicode update user websites windows





