Greenhorn
I'm just adding.zip to the end of the file. As of now it is only supposed to compress a single file. For the case it is a directory, I will change the algorithm to iterate over the directory, creating each entry on the zip file as supposed. The zip file being produced it is still empty:-(– cybertextron Jun 13 '12 at 20:55. You can do that. First create a file with the above commands and then create required number of files using copy command. Create a 4MB file: echo 'This is just a sample line appended to create a big file ' dummy.txt. For /L%i in (1,1,16) do type dummy.txt dummy.txt. Now create more files using the above file. Let's say you want 20 files.
posted 17 years agoFirst time try to create a zip file by using java zip api. It works just fine, there is one thing I can not do, I can not create an empty folder in the zip file that I am creating?
Can a zip file contain an empty folder? If it can how?
Thank you.
[ January 15, 2003: Message edited by: Neil Han ]
Can a zip file contain an empty folder? If it can how?
Thank you.
[ January 15, 2003: Message edited by: Neil Han ]
Bartender
posted 17 years agoHmmm.. this doesn't seem to belong in the Swing/JFC/AWT forum.. I'll move it to Java in General (Intermediate)..
-Nate
Write once, run anywhere, because there's nowhere to hide! Phonerescue 3 1 1 download free. - /. A.C.
Write once, run anywhere, because there's nowhere to hide! Phonerescue 3 1 1 download free. - /. A.C.
Ranch Hand
posted 17 years agoWhy can't you just put a small file in the folder, to keep the folder.
Greenhorn
posted 17 years agoJust a thought, if it doesn't work, that is a good idea to get around it. Thanks for your advice.
I have did a search on Google, seems there is not a good answer to it.
If any one has any idea please let me know.
---------------------------
hanxuerui.50megs.com
I have did a search on Google, seems there is not a good answer to it.
If any one has any idea please let me know.
---------------------------
hanxuerui.50megs.com
Greenhorn
![Create empty file in java Create empty file in java](https://user-images.githubusercontent.com/22956130/35682060-6e851580-0785-11e8-847c-295f6d804270.jpg)
Man, you are crazy!
Are those the certifications what you have got?
Are those the certifications what you have got?
Java File Example
Ranch Hand
posted 17 years agoYou are welcome! Neil.
Yes, those are my certs. It took me a while and a couple of bucks to get them.
Yes, those are my certs. It took me a while and a couple of bucks to get them.
Rancher
posted 17 years agoYou could also add 'Longest, loudest signature at JavaRanch' to the list.
:roll:
How do you measure signal to noise ratio?
:roll:
How do you measure signal to noise ratio?
Ranch Hand
posted 17 years agoCreate An Empty File Java
Originally posted by David O'Meara:
Email grabber online. How do you measure signal to noise ratio?
Email grabber online. How do you measure signal to noise ratio?
Signal? noise? I never thought about those.