Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed an application that sends file to remote user using Java Sockets... File is transmitted in bytes... Error is when I delete the file, it is deleted but next day when I turn on my Laptop same file name is there with 0 byte file size... Same is repeated for 2 more days then I need to delete it via command prompt...
Posted
Comments
Kornfeld Eliyahu Peter 10-Mar-14 7:27am    
You may show us the code, where you deleting the file. Should it be that you just open a new instance with the same name just after deleting?
Shubhashish_Mandal 10-Mar-14 7:36am    
check whether you have closed the file I/O resources after transmit .
Xiao Ling 27-Mar-14 3:22am    
Post your code, please
Sarjit 27-Mar-14 9:20am    
Thank you all.. But I tried it with different file afterwards... File was deleted successfully.. I think error was due to that file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900