About writting in a file

When overwritting to an existing file , what would happen it the existing file has a bigger size than the data written in it ?I haven't tried it right now , but i would know how this is done in Java .Thanks in advance for any valuable answer.
[271 byte] By [marc_huhardeaux] at [2007-9-26 5:32:50]
# 1

This is an OS question.

Generally, when you overwrite a file, it is the same as deleting the previous file and writing a new one. In any case, this is not something that will be unique to Java - Java will just be making OS calls to write the data to disk.

I don't know of any OS that wouldn't just allocate more space for you.

ShagVT at 2007-6-29 19:43:48 > top of Java-index,Archived Forums,Java Programming...