This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OutputStream truncates locked file  RSS feed

 
Francisco A Guimaraes
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just found out that when you create an OutputStream on a locked file, it will erase the content of the file. This is already registered in the Java bug list.

Is there another way to lock a file?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!