Target.truncate(target.size)

In:

target = File.open(filename)
target.truncate(target.size)

What is the purpose of “target.size”? Does it return the size of the
file for instance? Should we always pass it to “truncate”, why?

Thanks.